fix: correct AuthContext import in Verify.jsx
Fixed build error where AuthContext was imported directly instead of using the useAuth hook.
Changed from import { AuthContext } + useContext(AuthContext) to import { useAuth } + useAuth().
This was blocking the Docker build and production deployment of v9c.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
514b68e34f
commit
9fa60434c1
|
|
@ -1,13 +1,13 @@
|
|||
import { useState, useEffect, useContext } from 'react'
|
||||
import { useState, useEffect } from 'react'
|
||||
import { useSearchParams, useNavigate } from 'react-router-dom'
|
||||
import { AuthContext } from '../context/AuthContext'
|
||||
import { useAuth } from '../context/AuthContext'
|
||||
import { api } from '../utils/api'
|
||||
|
||||
export default function Verify() {
|
||||
const [searchParams] = useSearchParams()
|
||||
const token = searchParams.get('token')
|
||||
const navigate = useNavigate()
|
||||
const { login } = useContext(AuthContext)
|
||||
const { login } = useAuth()
|
||||
|
||||
const [status, setStatus] = useState('loading') // loading | success | error
|
||||
const [error, setError] = useState(null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user