mirror of
https://github.com/hex248/tsos.git
synced 2026-02-07 18:23:05 +00:00
konva Stage setup
This commit is contained in:
@@ -23,13 +23,14 @@ function ThemeToggle() {
|
||||
<Button
|
||||
type="button"
|
||||
variant="dummy"
|
||||
size="none"
|
||||
className="rounded cursor-pointer"
|
||||
onClick={() => {
|
||||
if (!theme || theme === "light") updateTheme("dark");
|
||||
else updateTheme("light");
|
||||
}}
|
||||
>
|
||||
{theme === "dark" ? <Sun /> : <Moon />}
|
||||
{theme === "dark" ? <Sun className="size-6" /> : <Moon className="size-6" />}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user