UPDATE: Updated VideoPage UI

UPDATE: Added response to successful password reset redirect to homepage
This commit is contained in:
JustIceO7
2025-02-14 00:14:16 +00:00
parent 9bd1e249ed
commit 88c9b168fd
9 changed files with 98 additions and 78 deletions

View File

@@ -6,9 +6,13 @@ const ResetPasswordPage: React.FC = () => {
const { token } = useParams<{ token: string }>();
const navigate = useNavigate();
const handlePasswordReset = () => {
const handlePasswordReset = (success: boolean) => {
if (success) {
alert("Password reset successful!");
navigate("/");
}
};
if (!token) {
return <p className="text-red-500 text-center mt-4">Invalid or missing token.</p>;
}