Skip to content

Commit 01ba86b

Browse files
committed
Delete react.svg and fix useTheme hook
1 parent 1367eb8 commit 01ba86b

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/assets/react.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/hooks/useTheme.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import { useContext } from "react";
22
import { ThemeProviderContext } from "@/components/theme-provider";
33
export const useTheme = () => {
44
const context = useContext(ThemeProviderContext);
5-
65
if (context === undefined)
76
throw new Error("useTheme must be used within a ThemeProvider");
8-
97
return context;
108
};

0 commit comments

Comments
 (0)