Correction de redirection
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { useAuth } from '../context/AuthContext'
|
||||
|
||||
export default function ReglesJeu() {
|
||||
const { user } = useAuth()
|
||||
const isLoggedIn = !!user
|
||||
|
||||
return (
|
||||
<div className="bg-green-50 min-h-screen">
|
||||
|
||||
@@ -79,12 +83,14 @@ export default function ReglesJeu() {
|
||||
Inscrivez-vous, entrez votre code de ticket et retirez votre lot en magasin ou en ligne.
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row justify-center gap-3 sm:gap-4">
|
||||
<Link
|
||||
to="/inscription"
|
||||
className="bg-white text-green-700 px-6 sm:px-8 py-3 rounded-xl font-semibold hover:bg-green-50 text-sm sm:text-base"
|
||||
>
|
||||
Inscrivez-vous
|
||||
</Link>
|
||||
{!isLoggedIn && (
|
||||
<Link
|
||||
to="/inscription"
|
||||
className="bg-white text-green-700 px-6 sm:px-8 py-3 rounded-xl font-semibold hover:bg-green-50 text-sm sm:text-base"
|
||||
>
|
||||
Inscrivez-vous
|
||||
</Link>
|
||||
)}
|
||||
<Link
|
||||
to="/saisir-code-unique"
|
||||
className="border border-white px-6 sm:px-8 py-3 rounded-xl font-semibold hover:bg-green-800 text-sm sm:text-base"
|
||||
|
||||
Reference in New Issue
Block a user