From 19abb74416a0ec93dea602105e142cb25fcf8ebb Mon Sep 17 00:00:00 2001 From: shenlan Date: Tue, 2 Dec 2025 11:42:42 +0800 Subject: [PATCH] Fix theme hook import and registry (#718) --- dashboard/.yarnrc.yml | 2 +- dashboard/src/components/Footer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/.yarnrc.yml b/dashboard/.yarnrc.yml index 9bdeb26..e81d521 100644 --- a/dashboard/.yarnrc.yml +++ b/dashboard/.yarnrc.yml @@ -4,4 +4,4 @@ enableGlobalCache: false nodeLinker: node-modules -npmRegistryServer: "https://registry.npmmirror.com" +npmRegistryServer: "https://registry.npmjs.org" diff --git a/dashboard/src/components/Footer.tsx b/dashboard/src/components/Footer.tsx index 31d2d1c..d193f51 100644 --- a/dashboard/src/components/Footer.tsx +++ b/dashboard/src/components/Footer.tsx @@ -1,7 +1,7 @@ 'use client' import { BookOpen, Github, Globe, Link, Moon, Sun } from 'lucide-react' -import { useTheme } from '@theme' +import { useTheme } from '@theme/useTheme' export default function Footer() { const { isDark, toggleTheme } = useTheme()