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"}>
|
||||
|
||||
Reference in New Issue
Block a user