forked from cartsnitch/cartsnitch
fix: remove unused navigate variable from Login.tsx
Remove const navigate = useNavigate() and the useNavigate import since the success path now uses window.location.href = '/' instead. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
+1
-2
@@ -1,5 +1,5 @@
|
||||
import { useState } from 'react'
|
||||
import { Link, useNavigate } from 'react-router-dom'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { authClient } from '../lib/auth-client.ts'
|
||||
import { useAuthStore } from '../stores/auth.ts'
|
||||
|
||||
@@ -8,7 +8,6 @@ export function Login() {
|
||||
const [password, setPassword] = useState('')
|
||||
const [error, setError] = useState('')
|
||||
const [loading, setLoading] = useState(false)
|
||||
const navigate = useNavigate()
|
||||
const setAuthenticated = useAuthStore((s) => s.setAuthenticated)
|
||||
|
||||
async function handleSubmit(e: React.FormEvent) {
|
||||
|
||||
Reference in New Issue
Block a user