mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(navbar) add fix style
This commit is contained in:
2 files changed
+65
-62
No files matched your search
@@ -18,20 +18,23 @@ function ThemeSwitcher() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Switch
|
||||
color={ 'default' }
|
||||
aria-label={ `theme switch` }
|
||||
startContent={ <MdOutlineLightMode /> }
|
||||
endContent={ <MdOutlineDarkMode /> }
|
||||
onValueChange={ (isSelected) => {
|
||||
if (isSelected) {
|
||||
setTheme('light');
|
||||
} else {
|
||||
setTheme('dark');
|
||||
}
|
||||
} }
|
||||
></Switch>
|
||||
<div className={ `` }>
|
||||
<div className={ `flex flex-row items-center` }>
|
||||
<Switch
|
||||
color={ 'default' }
|
||||
aria-label={ `theme switch` }
|
||||
startContent={ <MdOutlineLightMode /> }
|
||||
endContent={ <MdOutlineDarkMode /> }
|
||||
onValueChange={ (isSelected) => {
|
||||
if (isSelected) {
|
||||
setTheme('light');
|
||||
} else {
|
||||
setTheme('dark');
|
||||
}
|
||||
} }
|
||||
></Switch>
|
||||
<p className={ `font-bold` }>{ `Toggle Theme` }</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user