diff --git a/src/Components/AppShell/AppShell.tsx b/src/Components/AppShell/AppShell.tsx index 2b22ad3d..ec6a63b6 100644 --- a/src/Components/AppShell/AppShell.tsx +++ b/src/Components/AppShell/AppShell.tsx @@ -3,7 +3,7 @@ import NavBar from './NavBar' import { BrowserRouter } from 'react-router-dom' import { ToastContainer } from 'react-toastify' -export function AppShell({ appName, useAuth, children }) { +export function AppShell({ appName, children }) { return ( - +
{children}
diff --git a/src/Components/AppShell/NavBar.tsx b/src/Components/AppShell/NavBar.tsx index b90d71d3..b7204536 100644 --- a/src/Components/AppShell/NavBar.tsx +++ b/src/Components/AppShell/NavBar.tsx @@ -1,6 +1,6 @@ import { useState } from "react"; import { useNavigate } from "react-router-dom"; -//import { useAuth } from "../api/auth"; +import { useAuth } from "../Auth" import { Link } from "react-router-dom"; import { toast } from "react-toastify"; import QuestionMarkIcon from '@heroicons/react/24/outline/QuestionMarkCircleIcon' @@ -8,7 +8,7 @@ import * as React from "react"; import DialogModal from "./DialogModal"; -export default function NavBar({ appName, useAuth }: { appName: string, useAuth: any }) { +export default function NavBar({ appName}: { appName: string }) { const [signupOpen, setSignupOpen] = useState(false); @@ -110,7 +110,7 @@ export default function NavBar({ appName, useAuth }: { appName: string, useAuth: {isAuthenticated ?
- {user.avatar ?
+ {user?.avatar ?
-