mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
.fix themeswitcher button
This commit is contained in:
parent
59d88339bd
commit
3a2ff6d9bc
1 changed files with 4 additions and 4 deletions
|
@ -20,15 +20,15 @@ export const ThemeSwitcher = () => {
|
|||
|
||||
return (
|
||||
<button
|
||||
aria-label='Toggle Dark Mode'
|
||||
aria-label='Switch Theme'
|
||||
type='button'
|
||||
className='focus:outline-none bg-none xs:bg-gray-200 xs:dark:bg-gray-800 rounded-lg p-3 h-10 w-10 flex items-center justify-center ml-auto'
|
||||
className='mr-5 mt-5 flex ml-auto'
|
||||
onClick={() => toggle()}
|
||||
>
|
||||
{theme === 'light' ? (
|
||||
<BsMoonFill style={{ fill: 'black' }} size={300} />
|
||||
<BsMoonFill style={{ fill: 'black' }} size={25} />
|
||||
) : (
|
||||
<BsSunFill size={300} />
|
||||
<BsSunFill size={25} />
|
||||
)}
|
||||
</button>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue