File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+
12import { Link } from "react-router-dom" ;
23import { Button } from "@/components/ui/button" ;
34import { ThemeToggle } from "@/components/ui/theme-toggle" ;
4- import { useAuth } from "../hooks/useAuth " ;
5+ import { useAuth } from "../utils/auth " ;
56import { signOut } from "firebase/auth" ;
67import { auth } from "../utils/firebase" ;
78
89const Navbar = ( ) => {
9- const { user } = useAuth ( ) ;
10+ const { currentUser : user } = useAuth ( ) ;
1011
1112 const handleSignOut = async ( ) => {
1213 try {
Original file line number Diff line number Diff line change 11
22import { 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
516export function ThemeProvider ( { children, ...props } : ThemeProviderProps ) {
617 return < NextThemesProvider { ...props } > { children } </ NextThemesProvider >
You can’t perform that action at this time.
0 commit comments