Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
馃悰 theme toggle
Browse files Browse the repository at this point in the history
theme toggle

馃悰 Bugfix
  • Loading branch information
TimMikeladze committed Dec 29, 2022
1 parent 76da18f commit 5ac61e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ThemeModeToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useColorScheme } from '@mui/joy/styles';
import Button from '@mui/joy/Button';
import { useEffect, useState } from 'react';
import { IconButton, IconButtonProps } from '@mui/joy';
import { IconButton, Button, IconButtonProps } from '@mui/joy';
import { DarkModeTwoTone, LightModeTwoTone } from '@mui/icons-material';

const ThemeModeToggle = (props: IconButtonProps) => {
Expand All @@ -14,7 +13,7 @@ const ThemeModeToggle = (props: IconButtonProps) => {

if (!mounted) {
// to avoid layout shift, render a placeholder button
return <Button variant="outlined" color="neutral" />;
return <Button variant="plain" />;
}

return (
Expand Down

0 comments on commit 5ac61e4

Please sign in to comment.