mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-23 06:58:10 +02:00
fix: restore apple-btn-primary style for create user button; guard Invalid Date on sync status
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
ead53db496
commit
05354a0e74
2 files changed
+3
-3
No files matched your search
@@ -72,7 +72,7 @@ function FfApiStatusSection() {
|
|||||||
{status && (
|
{status && (
|
||||||
<div className="space-y-2 mt-2">
|
<div className="space-y-2 mt-2">
|
||||||
<p className="text-[12px] text-[var(--text-secondary)]">
|
<p className="text-[12px] text-[var(--text-secondary)]">
|
||||||
Dernière sync globale : <span className="font-mono font-medium">{new Date(status.lastSync).toLocaleString("fr-FR")}</span>
|
Dernière sync globale : <span className="font-mono font-medium">{(() => { const d = new Date(status.lastSync); return isNaN(d.getTime()) ? (status.lastSync ?? "—") : d.toLocaleString("fr-FR"); })()}</span>
|
||||||
</p>
|
</p>
|
||||||
{status.tables?.length > 0 && (
|
{status.tables?.length > 0 && (
|
||||||
<div className="rounded-lg overflow-hidden border border-[var(--border-subtle)]">
|
<div className="rounded-lg overflow-hidden border border-[var(--border-subtle)]">
|
||||||
@@ -89,7 +89,7 @@ function FfApiStatusSection() {
|
|||||||
<tr key={t.nom} className="border-t border-[var(--border-subtle)]">
|
<tr key={t.nom} className="border-t border-[var(--border-subtle)]">
|
||||||
<td className="px-3 py-2 font-mono text-[var(--text-primary)]">{t.nom}</td>
|
<td className="px-3 py-2 font-mono text-[var(--text-primary)]">{t.nom}</td>
|
||||||
<td className="px-3 py-2 text-right text-[var(--text-secondary)]">
|
<td className="px-3 py-2 text-right text-[var(--text-secondary)]">
|
||||||
{new Date(t.derniereSync).toLocaleString("fr-FR")}
|
{(() => { const d = new Date(t.derniereSync); return isNaN(d.getTime()) ? (t.derniereSync ?? "—") : d.toLocaleString("fr-FR"); })()}
|
||||||
</td>
|
</td>
|
||||||
<td className="px-3 py-2 text-right text-[var(--text-muted)]">
|
<td className="px-3 py-2 text-right text-[var(--text-muted)]">
|
||||||
{t.nbLignes?.toLocaleString("fr-FR") ?? "—"}
|
{t.nbLignes?.toLocaleString("fr-FR") ?? "—"}
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export function UserManagement() {
|
|||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={isCreating}
|
disabled={isCreating}
|
||||||
className="flex items-center gap-2 justify-center w-full px-4 py-2.5 rounded-xl bg-blue-600 hover:bg-blue-500 disabled:opacity-50 text-white text-sm font-semibold transition-colors"
|
className="apple-btn-primary w-full justify-center !h-auto py-2.5"
|
||||||
>
|
>
|
||||||
{isCreating ? <Loader2 className="w-4 h-4 animate-spin" /> : <Check className="w-4 h-4" />}
|
{isCreating ? <Loader2 className="w-4 h-4 animate-spin" /> : <Check className="w-4 h-4" />}
|
||||||
Créer le compte
|
Créer le compte
|
||||||
|
|||||||
Reference in new issue
Block a user