Skip to content

Commit

Permalink
fix: logo
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsharma82 committed Oct 27, 2024
1 parent 369217c commit 2eb40b6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ import { useRouter } from 'next/router'

const Logo = () => {
const { resolvedTheme } = useTheme();
if (resolvedTheme === 'dark') {
return <img width={160} src="/logo-dark.svg" />
} else {
return <img width={160} src="/logo-light.svg" />
}

return (
<>
{
resolvedTheme === 'dark' ? (
<img width={160} src="/logo-dark.svg" alt="ElegantOTA" />
) : (
<img width={160} src="/logo-light.svg" alt="ElegantOTA" />
)
}
</>
);
}

const config = {
Expand Down

0 comments on commit 2eb40b6

Please sign in to comment.