Skip to content

Commit

Permalink
Make "picked up" badge green
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester committed Aug 19, 2024
1 parent efc08fb commit 505140c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/store/OrderSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ const OrderItemPreview = ({ item, showFulfilled, showNotFulfilled }: OrderItemPr
// up from a previous partially fulfilled order that was rescheduled.
// For example, if an item is fulfilled but the order is missed or
// cancelled
<div className={styles.badge}>{showNotFulfilled ? 'Picked up' : 'Already picked up'}</div>
<div className={`${styles.badge} ${styles.pickedUp}`}>
{showNotFulfilled ? 'Picked up' : 'Already picked up'}
</div>
) : null}
{showNotFulfilled && !item.fulfilled ? (
// Only shows for partially fulfilled orders when the item wasn't
Expand Down
6 changes: 6 additions & 0 deletions src/components/store/OrderSummary/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
position: absolute;
right: 0;

&.pickedUp {
background-color: vars.$green-100;
border-color: vars.$green-300;
color: vars.$green-300;
}

&.notAvailable {
background-color: vars.$scarlet-1;
border-color: vars.$red;
Expand Down
1 change: 1 addition & 0 deletions src/components/store/OrderSummary/style.module.scss.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type Styles = {
label: string;
notAvailable: string;
partiallyFulfilledText: string;
pickedUp: string;
rescheduleReminder: string;
totalDiamonds: string;
totalPrice: string;
Expand Down

0 comments on commit 505140c

Please sign in to comment.