use user from session
This commit is contained in:
parent
5f47162a50
commit
700eaf3eb2
16 changed files with 148 additions and 107 deletions
|
@ -1,9 +1,9 @@
|
|||
import { useUser } from '../../user/userStore.ts'
|
||||
import { useUser } from '../../user/user.ts'
|
||||
import { useNavigate, Outlet } from 'react-router-dom'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
export default function Protected() {
|
||||
const { user } = useUser()
|
||||
const user = useUser()
|
||||
|
||||
const navigate = useNavigate()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue