Match the empty orders icon style to the empty basket state

Drop the tinted circle badge around the icon and use the same plain,
muted-gray sizing as basket.module.scss's empty state instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-13 20:26:27 +02:00
co-authored by Claude Sonnet 5
parent 2f37b6bba1
commit 8653418778
2 changed files with 5 additions and 17 deletions
@@ -38,22 +38,12 @@
@media (prefers-reduced-motion: no-preference) { @media (prefers-reduced-motion: no-preference) {
animation: empty-state-enter 0.32s cubic-bezier(0.2, 0, 0, 1) both; animation: empty-state-enter 0.32s cubic-bezier(0.2, 0, 0, 1) both;
} }
}
.emptyIcon {
display: flex;
align-items: center;
justify-content: center;
width: 3.5rem;
height: 3.5rem;
margin-bottom: $space-2;
border-radius: 999px;
background: color-mix(in srgb, $color-primary 12%, transparent);
svg { svg {
width: 1.75rem; width: 2.5rem;
height: 1.75rem; height: 2.5rem;
color: $color-primary; margin-bottom: $space-2;
color: $color-text-muted;
} }
} }
-2
View File
@@ -66,9 +66,7 @@ export const OrdersListView = ({ orders }: OrdersListViewProps) => {
{displayedOrders.length === 0 ? ( {displayedOrders.length === 0 ? (
<div className={styles.empty}> <div className={styles.empty}>
<MenuBackdrop /> <MenuBackdrop />
<div className={styles.emptyIcon}>
<OrdersIcon /> <OrdersIcon />
</div>
<p className={styles.emptyTitle}>No orders yet</p> <p className={styles.emptyTitle}>No orders yet</p>
<p className={styles.emptyText}> <p className={styles.emptyText}>
Your placed orders will show up here. Your placed orders will show up here.