Dark UI for react-select

This commit is contained in:
Jamie Curnow
2025-09-22 23:14:00 +10:00
parent 53507f88b3
commit f39efb3e63
8 changed files with 67 additions and 16 deletions

View File

@@ -15,11 +15,8 @@ function LocalePicker() {
location.reload();
};
const classes = ["btn", "dropdown-toggle", "btn-sm"];
let cns = cn(...classes, "btn-ghost-light", styles.lightBtn);
if (getTheme() === "dark") {
cns = cn(...classes, "btn-ghost-dark", styles.darkBtn);
}
const classes = ["btn", "dropdown-toggle", "btn-sm", styles.btn];
const cns = cn(...classes, getTheme() === "dark" ? "btn-ghost-dark" : "btn-ghost-light");
return (
<div className="dropdown">