Skip to content

Commit 00696ad

Browse files
Fix: Redirect to landing page
Change the "Retour" button on the AuthForm page to navigate to the landing page.
1 parent 0b6227f commit 00696ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/AuthForm.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
import { useState } from 'react';
23
import { Button } from '@/components/ui/button';
34
import { Input } from '@/components/ui/input';
@@ -70,16 +71,16 @@ export const AuthForm = () => {
7071
}
7172
};
7273

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

7778
return (
7879
<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">
7980
{/* Bouton retour */}
8081
<Button
8182
variant="ghost"
82-
onClick={handleBackToDashboard}
83+
onClick={handleBackToLanding}
8384
className="absolute top-6 left-6 text-slate-600 hover:text-slate-900"
8485
>
8586
<ArrowLeft className="mr-2 h-4 w-4" />

0 commit comments

Comments
 (0)