-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Corrige le clignotement du tutoriel [NGC-400] #328 - feat: Ajoute le CTA dans le header + modifie le lien Le test [NGC-390, NGC-436] #327 - Quick fix documentation (NGC-407) #326 - Ajoute éléments manquants pour la détection Dashlord #324 - Ajout emoji extérieur 🌿 (NGC-328) #323 - Modifie la manière de sauvegarder l'id lors de la migration d'une ancienne version du storage [NGC-381, NGC-471] #321 - Article challenge amis #320
- Loading branch information
1 parent
74e9c53
commit 8021013
Showing
26 changed files
with
240 additions
and
259 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 0 additions & 82 deletions
82
src/app/documentation/_components/DocumentationContent.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use client' | ||
|
||
import Trans from '@/components/translation/Trans' | ||
import ButtonLink from '@/design-system/inputs/ButtonLink' | ||
|
||
export default function CTAButton({ progression }: { progression: number }) { | ||
let href = '' | ||
if (!progression) { | ||
href = '/tutoriel' | ||
} else if (progression < 1) { | ||
href = '/simulateur/bilan' | ||
} else { | ||
href = '/fin' | ||
} | ||
|
||
let label | ||
if (!progression) { | ||
label = <Trans>Passer le test</Trans> | ||
} else if (progression < 1) { | ||
label = <Trans>Reprendre mon test</Trans> | ||
} else { | ||
label = <Trans>Voir mes résultats</Trans> | ||
} | ||
|
||
return <ButtonLink href={href}>{label}</ButtonLink> | ||
} |
Oops, something went wrong.