feat(web): add mobile theme toggle (#274)

This commit is contained in:
Giancarlo Buomprisco
2025-06-09 20:55:26 +07:00
committed by GitHub
parent 2ae8e14158
commit a416695400
3 changed files with 48 additions and 0 deletions

View File

@@ -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}>