feat(web): add mobile theme toggle (#274)
This commit is contained in:
committed by
GitHub
parent
2ae8e14158
commit
a416695400
@@ -21,6 +21,12 @@ const ModeToggle = dynamic(() =>
|
||||
})),
|
||||
);
|
||||
|
||||
const MobileModeToggle = dynamic(() =>
|
||||
import('@kit/ui/mobile-mode-toggle').then((mod) => ({
|
||||
default: mod.MobileModeToggle,
|
||||
})),
|
||||
);
|
||||
|
||||
const paths = {
|
||||
home: pathsConfig.app.home,
|
||||
};
|
||||
@@ -57,6 +63,12 @@ function AuthButtons() {
|
||||
</If>
|
||||
</div>
|
||||
|
||||
<div className={'md:hidden'}>
|
||||
<If condition={features.enableThemeToggle}>
|
||||
<MobileModeToggle />
|
||||
</If>
|
||||
</div>
|
||||
|
||||
<div className={'flex gap-x-2.5'}>
|
||||
<Button className={'hidden md:block'} asChild variant={'ghost'}>
|
||||
<Link href={pathsConfig.auth.signIn}>
|
||||
|
||||
Reference in New Issue
Block a user