Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed styling of seller onboarding card

Damian Legawiecd1d072970116
diff --git a/packages/dashboard-ui/src/styles.css b/packages/dashboard-ui/src/styles.css
index ce3a08132e..b630014d03 100644
--- a/packages/dashboard-ui/src/styles.css
+++ b/packages/dashboard-ui/src/styles.css
@@ -450,8 +450,8 @@
--radius-sm: 0.4rem;
--radius-md: 0.5rem;
--radius-lg: 0.625rem;
- --radius-xl: 0.875rem;
- --radius-2xl: 1.125rem;
+ --radius-xl: 0.75rem;
+ --radius-2xl: 1rem;
/* Sidebar + header tokens */
--spacing-sidebar-width: 240px;
diff --git a/packages/dashboard/src/components/spree/sellers/seller-onboarding-card.tsx b/packages/dashboard/src/components/spree/sellers/seller-onboarding-card.tsx
index 766527691d..1c4fafc0ea 100644
--- a/packages/dashboard/src/components/spree/sellers/seller-onboarding-card.tsx
+++ b/packages/dashboard/src/components/spree/sellers/seller-onboarding-card.tsx
@@ -20,13 +20,11 @@ import {
SheetDescription,
SheetHeader,
SheetTitle,
+ StepIcon,
useConfirm,
} from '@spree/dashboard-ui'
import {
- CheckCircle2Icon,
ChevronDownIcon,
- CircleIcon,
- ClockIcon,
DownloadIcon,
EllipsisVerticalIcon,
FileTextIcon,
@@ -337,16 +335,12 @@ function StatusBadge({ status, waived }: { status: string; waived: boolean }) {
)
}
+// The same icons the seller sees on their own onboarding page.
function StatusIcon({ status }: { status: string }) {
- if (status === 'complete') {
- return <CheckCircle2Icon className="mt-0.5 size-4 shrink-0 text-green-600" />
- }
-
- if (status === 'pending') {
- return <ClockIcon className="mt-0.5 size-4 shrink-0 text-amber-600" />
- }
+ if (status === 'complete') return <StepIcon status="done" className="mt-0.5" />
+ if (status === 'pending') return <StepIcon status="in_progress" className="mt-0.5" />
if (status === 'rejected') {
return <XCircleIcon className="mt-0.5 size-4 shrink-0 text-destructive" />
}
- return <CircleIcon className="mt-0.5 size-4 shrink-0 text-muted-foreground" />
+ return <StepIcon status="todo" className="mt-0.5" />
}