Skip to content

Commit b6536de

Browse files
Fix module import errors
Fixes errors related to missing module declarations for `../hooks/useAuth` and `next-themes/dist/types`.
1 parent 94912f3 commit b6536de

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/components/Navbar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
12
import { Link } from "react-router-dom";
23
import { Button } from "@/components/ui/button";
34
import { ThemeToggle } from "@/components/ui/theme-toggle";
4-
import { useAuth } from "../hooks/useAuth";
5+
import { useAuth } from "../utils/auth";
56
import { signOut } from "firebase/auth";
67
import { auth } from "../utils/firebase";
78

89
const Navbar = () => {
9-
const { user } = useAuth();
10+
const { currentUser: user } = useAuth();
1011

1112
const handleSignOut = async () => {
1213
try {

src/components/ThemeProvider.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11

22
import { ThemeProvider as NextThemesProvider } from "next-themes"
3-
import { type ThemeProviderProps } from "next-themes/dist/types"
3+
import { ReactNode } from "react"
4+
5+
interface ThemeProviderProps {
6+
children: ReactNode;
7+
defaultTheme?: string;
8+
storageKey?: string;
9+
enableSystem?: boolean;
10+
enableColorScheme?: boolean;
11+
disableTransitionOnChange?: boolean;
12+
forcedTheme?: string;
13+
attribute?: string;
14+
}
415

516
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
617
return <NextThemesProvider {...props}>{children}</NextThemesProvider>

0 commit comments

Comments
 (0)