Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GAsplund committed Nov 11, 2024
1 parent 7b19365 commit 72cef9c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Header/ThemeSelector/ThemeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BsFillSunFill, BsFillMoonFill, BsThreeDots } from 'react-icons/bs';
import { useTheme } from 'next-themes';
import { useEffect, useState } from 'react';

const ThemeSelector = ({className}: {className?: string}) => {
const ThemeSelector = ({ className }: { className?: string }) => {
const [mounted, setMounted] = useState(false);
const { resolvedTheme, setTheme } = useTheme();

Expand All @@ -28,7 +28,10 @@ const ThemeSelector = ({className}: {className?: string}) => {
};

return (
<a className={`${styles.icon} ${styles.toggle} ${className}`} onClick={toggleTheme}>
<a
className={`${styles.icon} ${styles.toggle} ${className}`}
onClick={toggleTheme}
>
{isDark ? <BsFillMoonFill /> : <BsFillSunFill />}
</a>
);
Expand Down

0 comments on commit 72cef9c

Please sign in to comment.