mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
admin: fix theme flash
This commit is contained in:
@@ -55,7 +55,7 @@ export default function Admin({
|
||||
|
||||
const Skeleton = ({ theme }: { theme?: any }) => {
|
||||
const t = useTheme();
|
||||
const actualTheme = theme ?? t.theme;
|
||||
const actualTheme = theme && ["dark", "light"].includes(theme) ? theme : t.theme;
|
||||
|
||||
return (
|
||||
<div id="bknd-admin" className={actualTheme + " antialiased"}>
|
||||
|
||||
@@ -185,9 +185,7 @@ function UserMenu() {
|
||||
}
|
||||
}
|
||||
|
||||
if (!options.theme) {
|
||||
items.push(() => <UserMenuThemeToggler />);
|
||||
}
|
||||
items.push(() => <UserMenuThemeToggler />);
|
||||
items.push(() => (
|
||||
<div className="font-mono leading-none text-xs text-primary/50 text-center pb-1 pt-2 mt-1 border-t border-primary/5">
|
||||
{getVersion()}
|
||||
|
||||
Reference in New Issue
Block a user