Add delete action to invitations and UI improvements
Introduces a delete button for unused invitations in InvitationsListCard, allowing admins to remove invites. Also improves layout and spacing in the invitations card, formats order totals with currency in RecentOrdersCard, and hides several unused cards in the admin page as requested.
This commit is contained in:
@@ -17,50 +17,12 @@ export default function AdminPage() {
|
||||
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3 items-stretch">
|
||||
<SystemStatusCard />
|
||||
|
||||
<a href="#" className="group rounded-lg border border-border/60 bg-background p-4 hover:bg-muted/40 transition-colors h-full min-h-[200px]">
|
||||
<div className="flex items-start justify-between">
|
||||
<div>
|
||||
<h2 className="font-medium">Logs</h2>
|
||||
<p className="text-sm text-muted-foreground mt-1">View recent errors and warnings</p>
|
||||
</div>
|
||||
<span className="text-xs px-2 py-0.5 rounded bg-amber-500/15 text-amber-400">New</span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<InviteVendorCard />
|
||||
<BanUserCard />
|
||||
<RecentOrdersCard />
|
||||
<InvitationsListCard />
|
||||
|
||||
<a href="#" className="group rounded-lg border border-border/60 bg-background p-4 hover:bg-muted/40 transition-colors">
|
||||
<div className="flex items-start justify-between">
|
||||
<div>
|
||||
<h2 className="font-medium">Broadcast</h2>
|
||||
<p className="text-sm text-muted-foreground mt-1">Send a message to users</p>
|
||||
</div>
|
||||
<span className="text-xs px-2 py-0.5 rounded bg-fuchsia-500/15 text-fuchsia-400">Tools</span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="#" className="group rounded-lg border border-border/60 bg-background p-4 hover:bg-muted/40 transition-colors h-full min-h-[200px]">
|
||||
<div className="flex items-start justify-between">
|
||||
<div>
|
||||
<h2 className="font-medium">Config</h2>
|
||||
<p className="text-sm text-muted-foreground mt-1">Feature flags and settings</p>
|
||||
</div>
|
||||
<span className="text-xs px-2 py-0.5 rounded bg-indigo-500/15 text-indigo-400">Edit</span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="#" className="group rounded-lg border border-border/60 bg-background p-4 hover:bg-muted/40 transition-colors h-full min-h-[200px]">
|
||||
<div className="flex items-start justify-between">
|
||||
<div>
|
||||
<h2 className="font-medium">Payments</h2>
|
||||
<p className="text-sm text-muted-foreground mt-1">Gateways and webhooks</p>
|
||||
</div>
|
||||
<span className="text-xs px-2 py-0.5 rounded bg-teal-500/15 text-teal-400">Setup</span>
|
||||
</div>
|
||||
</a>
|
||||
{/* Disabled/hidden cards as requested */}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user