use user from session

This commit is contained in:
john 2025-05-20 10:06:18 +02:00
parent 5f47162a50
commit 700eaf3eb2
16 changed files with 148 additions and 107 deletions

View file

@ -1,9 +1,9 @@
import { useUser } from '../../user/userStore.ts'
import { useUser } from '../../user/user.ts'
import NavButton from '../../../components/buttons/NavButton.tsx'
import { useLocation } from 'react-router-dom'
export default function AuthNavButtons() {
const { user } = useUser()
const user = useUser()
const { pathname } = useLocation()