Skip to content

Commit 0b6227f

Browse files
Fix: Add link to dashboard
Added a link to the dashboard in the authentication form.
1 parent 7f0d116 commit 0b6227f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/AuthForm.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { useState } from 'react';
32
import { Button } from '@/components/ui/button';
43
import { Input } from '@/components/ui/input';
@@ -71,16 +70,16 @@ export const AuthForm = () => {
7170
}
7271
};
7372

74-
const handleBackToLanding = () => {
75-
navigate('/');
73+
const handleBackToDashboard = () => {
74+
navigate('/dashboard');
7675
};
7776

7877
return (
7978
<div className="min-h-screen bg-gradient-to-br from-blue-50/50 via-white to-purple-50/50 flex items-center justify-center p-4 relative">
8079
{/* Bouton retour */}
8180
<Button
8281
variant="ghost"
83-
onClick={handleBackToLanding}
82+
onClick={handleBackToDashboard}
8483
className="absolute top-6 left-6 text-slate-600 hover:text-slate-900"
8584
>
8685
<ArrowLeft className="mr-2 h-4 w-4" />

0 commit comments

Comments
 (0)