Skip to content

Commit

Permalink
refactor: Update Header component to use resolvedTheme instead of the…
Browse files Browse the repository at this point in the history
…me (#140)
  • Loading branch information
ttizze authored Aug 1, 2024
2 parents 4d09963 + 36dd28d commit 22cee2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ interface HeaderProps {
}

export function Header({ safeUser }: HeaderProps) {
const { theme } = useTheme();
const { resolvedTheme } = useTheme();

return (
<header className="shadow-sm mb-10 z-10 ">
<div className="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8 flex justify-between items-center">
<Link to="/">
<img
src={`/title-logo-${theme || "light"}.png `}
src={`/title-logo-${resolvedTheme || "light"}.png `}
alt=""
className="w-40"
/>
Expand Down

0 comments on commit 22cee2a

Please sign in to comment.