style: prettier format
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
79bbbdc4e8
commit
99617f117c
45 changed files with 229 additions and 302 deletions
|
|
@ -62,8 +62,7 @@ export function MonProfilPreparation({ plan }: Props) {
|
|||
Mon profil de préparation
|
||||
</p>
|
||||
<p className="text-sm text-ink-2">
|
||||
Encore{' '}
|
||||
<span className="font-semibold tabular-nums">{remaining}</span>{' '}
|
||||
Encore <span className="font-semibold tabular-nums">{remaining}</span>{' '}
|
||||
{remaining > 1 ? 'simulations' : 'simulation'} pour débloquer votre profil.
|
||||
</p>
|
||||
<p className="text-xs text-ink-4 tabular-nums">
|
||||
|
|
@ -108,10 +107,7 @@ export function MonProfilPreparation({ plan }: Props) {
|
|||
</p>
|
||||
|
||||
<Button variant="secondary" size="sm" className="w-full">
|
||||
<Link
|
||||
to="/progression"
|
||||
className="-m-1 flex items-center justify-center gap-1.5 p-1"
|
||||
>
|
||||
<Link to="/progression" className="-m-1 flex items-center justify-center gap-1.5 p-1">
|
||||
Voir mon profil de préparation
|
||||
<ArrowRight className="size-3.5" aria-hidden="true" />
|
||||
</Link>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,9 @@ const PLAN_LABELS: Record<Plan, string> = {
|
|||
premium: 'Plan Premium',
|
||||
}
|
||||
|
||||
function getDisplayName(user: { user_metadata?: { full_name?: string }; email?: string } | null): string {
|
||||
function getDisplayName(
|
||||
user: { user_metadata?: { full_name?: string }; email?: string } | null,
|
||||
): string {
|
||||
const fullName = user?.user_metadata?.full_name
|
||||
if (fullName) return fullName.split(' ')[0]
|
||||
const email = user?.email
|
||||
|
|
@ -76,9 +78,7 @@ export function DashboardPage() {
|
|||
<div className="space-y-6">
|
||||
{/* Salutation */}
|
||||
<section className="flex flex-wrap items-center gap-3">
|
||||
<h1 className="text-2xl font-semibold text-ink-1">
|
||||
Bonjour, {displayName}
|
||||
</h1>
|
||||
<h1 className="text-2xl font-semibold text-ink-1">Bonjour, {displayName}</h1>
|
||||
<Badge variant="plan" planValue={data.plan}>
|
||||
{PLAN_LABELS[data.plan]}
|
||||
</Badge>
|
||||
|
|
@ -88,16 +88,11 @@ export function DashboardPage() {
|
|||
{!hasAccess(data.plan, 'dashboard') && <PaywallBanner />}
|
||||
|
||||
{/* Métriques */}
|
||||
<section
|
||||
className="grid grid-cols-2 gap-4"
|
||||
aria-label="Métriques de préparation"
|
||||
>
|
||||
<section className="grid grid-cols-2 gap-4" aria-label="Métriques de préparation">
|
||||
<div className="rounded-lg border border-line bg-surface p-4">
|
||||
<p className="text-xs text-ink-4">Simulations restantes</p>
|
||||
<p className="mt-1 text-2xl font-semibold text-ink-1">
|
||||
{data.simulations_remaining === null
|
||||
? 'Illimitées'
|
||||
: data.simulations_remaining}
|
||||
{data.simulations_remaining === null ? 'Illimitées' : data.simulations_remaining}
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-lg border border-line bg-surface p-4">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue