Fix IDE errors from ESLint cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Link, useSearchParams, useNavigate } from 'react-router-dom';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { toast } from 'sonner';
|
||||
import Container from '@/components/Layout/Container';
|
||||
import { Button } from '@/components/ui/button';
|
||||
@@ -8,9 +8,7 @@ import { Label } from '@/components/ui/label';
|
||||
import { KeyRound, ArrowLeft, Eye, EyeOff, CheckCircle, AlertCircle, Loader2 } from 'lucide-react';
|
||||
|
||||
export default function ResetPassword() {
|
||||
const [searchParams] = useSearchParams();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
const key = searchParams.get('key') || '';
|
||||
const login = searchParams.get('login') || '';
|
||||
|
||||
@@ -53,7 +51,7 @@ export default function ResetPassword() {
|
||||
} else {
|
||||
setError(data.message || 'This password reset link has expired or is invalid.');
|
||||
}
|
||||
} catch (err) {
|
||||
} catch {
|
||||
setError('Unable to validate reset link. Please try again later.');
|
||||
} finally {
|
||||
setIsValidating(false);
|
||||
@@ -61,7 +59,8 @@ export default function ResetPassword() {
|
||||
};
|
||||
|
||||
validateKey();
|
||||
}, [key, login]);
|
||||
|
||||
}, [login]);
|
||||
|
||||
const handleSubmit = async (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user