Skip to content

Commit

Permalink
fix logo`s theme switching
Browse files Browse the repository at this point in the history
  • Loading branch information
bobronaud committed Mar 4, 2024
1 parent 1f46b23 commit 1b0f45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/landing/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import './custom-colors.scss';

function Header() {
const { t } = useTranslation();
const { ternaryDarkMode } = useTernaryDarkMode();
const { isDarkMode } = useTernaryDarkMode();

const logo = ternaryDarkMode === 'light' ? RunItLogoLight : RunItLogoDark;
const logo = isDarkMode ? RunItLogoDark : RunItLogoLight;
return (
<header>
<Navbar expand="lg">
Expand Down

0 comments on commit 1b0f45a

Please sign in to comment.