mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-06-30 22:26:38 -04:00
rename resolvedTheme
-> activeTheme
This commit is contained in:
@ -33,13 +33,13 @@ export type LayoutProps = ComponentProps<typeof Flex> & {
|
||||
};
|
||||
|
||||
const Layout = ({ container = true, children, ...rest }: LayoutProps) => {
|
||||
const { resolvedTheme } = useTheme();
|
||||
const { activeTheme } = useTheme();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
{/* dynamically set browser theme color to match the background color; default to light for SSR */}
|
||||
<meta name="theme-color" content={themeColors[resolvedTheme === "dark" ? "dark" : "light"]} />
|
||||
<meta name="theme-color" content={themeColors[activeTheme === "dark" ? "dark" : "light"]} />
|
||||
</Head>
|
||||
|
||||
<Flex {...rest}>
|
||||
|
Reference in New Issue
Block a user