1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-11-15 22:41:05 +03:00

Dark UI for react-select

This commit is contained in:
Jamie Curnow
2025-09-22 23:14:00 +10:00
parent 94375bbc5f
commit d85e515ab9
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">