use user from session
This commit is contained in:
parent
5f47162a50
commit
700eaf3eb2
16 changed files with 148 additions and 107 deletions
|
@ -4,7 +4,7 @@ import TextInput from '../../../components/inputs/TextInput.tsx'
|
|||
import Button from '../../../components/buttons/Button.tsx'
|
||||
import { AuthService } from '../authService.ts'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { useUser } from '../../user/userStore.ts'
|
||||
import { useUser } from '../../user/user.ts'
|
||||
import NavBar from '../../../components/NavBar.tsx'
|
||||
import NavButton from '../../../components/buttons/NavButton.tsx'
|
||||
import LinkButton from '../../../components/buttons/LinkButton.tsx'
|
||||
|
@ -22,7 +22,7 @@ export default function LoginPage({ authService }: LoginPageProps) {
|
|||
const passwordInputRef = useRef<HTMLInputElement | null>(null)
|
||||
const navigate = useNavigate()
|
||||
|
||||
const { user } = useUser()
|
||||
const user = useUser()
|
||||
|
||||
useEffect(() => {
|
||||
if (user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue