From 46bd501835ff445275ec2c6aeb2315ad2b14ff8f Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Wed, 16 Aug 2023 09:29:16 +0200 Subject: [PATCH] chore: status order to figma --- .../src/app/(dashboard)/documents/page.tsx | 27 ++++++++++--------- .../components/formatter/document-status.tsx | 10 +++---- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/apps/web/src/app/(dashboard)/documents/page.tsx b/apps/web/src/app/(dashboard)/documents/page.tsx index c36aa644d..9a04d7ba1 100644 --- a/apps/web/src/app/(dashboard)/documents/page.tsx +++ b/apps/web/src/app/(dashboard)/documents/page.tsx @@ -78,19 +78,6 @@ export default async function DocumentsPage({ searchParams = {} }: DocumentsPage
- - All - - - - - - - - {Math.min(stats.DRAFT, 99)} - - - @@ -111,6 +98,20 @@ export default async function DocumentsPage({ searchParams = {} }: DocumentsPage + + + + + + + {Math.min(stats.DRAFT, 99)} + + + + + + All + diff --git a/apps/web/src/components/formatter/document-status.tsx b/apps/web/src/components/formatter/document-status.tsx index fbe1e1a3b..4e1ccf742 100644 --- a/apps/web/src/components/formatter/document-status.tsx +++ b/apps/web/src/components/formatter/document-status.tsx @@ -13,11 +13,6 @@ type FriendlyStatus = { }; const FRIENDLY_STATUS_MAP: Record = { - DRAFT: { - label: 'Draft', - icon: File, - color: 'text-yellow-500', - }, PENDING: { label: 'Pending', icon: Clock, @@ -28,6 +23,11 @@ const FRIENDLY_STATUS_MAP: Record = { icon: CheckCircle2, color: 'text-green-500', }, + DRAFT: { + label: 'Draft', + icon: File, + color: 'text-yellow-500', + }, }; export type DocumentStatusProps = HTMLAttributes & {