mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
Format code
This commit is contained in:
@ -9,7 +9,7 @@ const DarkModeBtn = () => {
|
||||
const { systemTheme, theme, setTheme } = useTheme();
|
||||
const currentTheme = theme === 'system' ? systemTheme : theme;
|
||||
|
||||
if (!mounted)
|
||||
if (!mounted) {
|
||||
return (
|
||||
<button>
|
||||
<div
|
||||
@ -20,6 +20,7 @@ const DarkModeBtn = () => {
|
||||
></div>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Reference in New Issue
Block a user