diff --git a/components/layout/main-nav.tsx b/components/layout/main-nav.tsx
index e7786b7b..32afc8a2 100644
--- a/components/layout/main-nav.tsx
+++ b/components/layout/main-nav.tsx
@@ -25,7 +25,7 @@ export function MainNav() {
-
-
-
+
+
+
+
+
+
diff --git a/components/shared/is-dark-theme.tsx b/components/shared/is-dark-theme.tsx
index 0c3d4fb4..c773ddd1 100644
--- a/components/shared/is-dark-theme.tsx
+++ b/components/shared/is-dark-theme.tsx
@@ -8,9 +8,9 @@ interface IsDarkThemeProps {
}
export const IsDarkTheme = ({ children }: IsDarkThemeProps) => {
- const { theme } = useTheme()
+ const { resolvedTheme } = useTheme()
- if (theme !== "light") return <>{children}>
+ if (resolvedTheme === "dark") return <>{children}>
return null
}
diff --git a/components/shared/is-light-theme.tsx b/components/shared/is-light-theme.tsx
index e28f4642..3938a916 100644
--- a/components/shared/is-light-theme.tsx
+++ b/components/shared/is-light-theme.tsx
@@ -8,9 +8,9 @@ interface IsLightThemeProps {
}
export const IsLightTheme = ({ children }: IsLightThemeProps) => {
- const { theme } = useTheme()
+ const { resolvedTheme } = useTheme()
- if (theme === "light") return <>{children}>
+ if (resolvedTheme === "light") return <>{children}>
return null
}
diff --git a/components/shared/light-dark-image.tsx b/components/shared/light-dark-image.tsx
index 25bb1ad8..29893075 100644
--- a/components/shared/light-dark-image.tsx
+++ b/components/shared/light-dark-image.tsx
@@ -21,10 +21,10 @@ const LightDarkImage = ({
width,
className,
}: LightDarkImageProps) => {
- const { theme } = useTheme()
+ const { resolvedTheme } = useTheme()
let imageUrl = LightImage
- if (theme === "dark") {
+ if (resolvedTheme === "dark") {
imageUrl = DarkImage
}
diff --git a/public/logo-white.png b/public/logo-light.png
similarity index 100%
rename from public/logo-white.png
rename to public/logo-light.png