diff --git a/src/Components/AppShell/NavBar.tsx b/src/Components/AppShell/NavBar.tsx index 10b717b9..b4965050 100644 --- a/src/Components/AppShell/NavBar.tsx +++ b/src/Components/AppShell/NavBar.tsx @@ -8,6 +8,8 @@ import { toast } from 'react-toastify' import { useAuth } from '#components/Auth/useAuth' import { useItems } from '#components/Map/hooks/useItems' +import { useAppState } from './hooks/useAppState' + import type { Item } from '#types/Item' export default function NavBar({ appName }: { appName: string }) { @@ -24,7 +26,7 @@ export default function NavBar({ appName }: { appName: string }) { : setUserProfile({ id: crypto.randomUUID(), name: user?.first_name ?? '', text: '' }) }, [user, items]) - // useEffect(() => {}, [userProfile]) + const appState = useAppState() const nameRef = useRef(null) const [nameWidth, setNameWidth] = useState(0) @@ -103,7 +105,7 @@ export default function NavBar({ appName }: { appName: string }) { {userProfile.image && (
- +
)}