Add back vc auth temporarily to unblock things

This commit is contained in:
Jared Palmer 2023-05-19 14:13:38 -04:00
parent 07c2e7d36a
commit 177b2cc210
20 changed files with 350 additions and 40 deletions

View file

@ -4,16 +4,21 @@ import { useTheme } from "next-themes";
import { Button } from "@/components/ui/button";
import { Moon, Sun } from "lucide-react";
import { useTransition } from "react";
export function ThemeToggle() {
const { setTheme, theme } = useTheme();
const [_, startTransition] = useTransition();
return (
<Button
variant="ghost"
size="xs"
className="p-0 leading-4 h-4 font-normal w-full"
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
onClick={() => {
startTransition(() => {
setTheme(theme === "light" ? "dark" : "light");
});
}}
>
<span className="flex flex-row justify-between text-xs text-zinc-900 dark:text-zinc-400 w-full">
<span className="">Toggle theme</span>