diff --git a/src/App.tsx b/src/App.tsx
index 6b7b592..c964f59 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,5 +1,8 @@
import InfiniteCanvas from "./components/InfinateCanvas"
+import { useThemeDetector } from "./utils/useThemeDetector"
export function App() {
+ useThemeDetector()
+
return
}
diff --git a/src/components/ImageCard.tsx b/src/components/ImageCard.tsx
index 56b5905..1f750ff 100644
--- a/src/components/ImageCard.tsx
+++ b/src/components/ImageCard.tsx
@@ -4,7 +4,7 @@ import { useDebounce } from "../utils/useDebounce"
import { LayerEnum } from "../utils/enums"
import images, { ImageCardType } from "../signals/images"
import { updateLocalStorage } from "../utils/localStorage"
-import { isTheme } from "../utils/isTheme"
+import { useThemeDetector } from "../utils/useThemeDetector"
namespace ImageCard {
export interface ImageCardProps {
@@ -121,6 +121,7 @@ export function ImageCard({ key: itemKey, data: item }: ImageCard.ImageCardProps
function ExpandIcon({ cb }: {
cb: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined
}) {
+ const isDarkTheme = useThemeDetector()
return (