From 9fa60434c1c3b05f001edc194603c638bd3d221f Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 21 Mar 2026 09:59:59 +0100 Subject: [PATCH] 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 --- frontend/src/pages/Verify.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Verify.jsx b/frontend/src/pages/Verify.jsx index 32fc2ca..9be07b3 100644 --- a/frontend/src/pages/Verify.jsx +++ b/frontend/src/pages/Verify.jsx @@ -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)