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
|
|
@ -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