feat(ui): admin-only root link and shared header navigation
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-06 16:50:45 +01:00
parent 7a20cf5c75
commit ce63cd8b69
32 changed files with 1070 additions and 600 deletions
+14 -1
View File
@@ -2,6 +2,19 @@
import { ThemeProvider as NextThemesProvider, type ThemeProviderProps } from "next-themes";
const defaultThemeProps: ThemeProviderProps = {
attribute: "class",
defaultTheme: "system",
enableSystem: true,
disableTransitionOnChange: true,
enableColorScheme: true,
storageKey: "mohfarawati-theme",
};
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
return (
<NextThemesProvider {...defaultThemeProps} {...props}>
{children}
</NextThemesProvider>
);
}