Use static assets instead of fetching from github (#156)

This commit is contained in:
Håvard Gjøby Thom
2024-11-09 20:06:54 +01:00
committed by GitHub
parent 2af11d145f
commit d199762427
18 changed files with 136 additions and 107 deletions

View File

@@ -1,9 +1,14 @@
"use client";
import { useTheme } from "next-themes";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip";
import { Button } from "./button";
import { MoonIcon, SunIcon } from "@radix-ui/react-icons";
import { useTheme } from "next-themes";
import { Button } from "./button";
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "./tooltip";
export function ThemeToggle() {
const { setTheme, theme: currentTheme } = useTheme();