Skip to content

Commit

Permalink
feat(purchase cart): add continue shopping button (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mapra99 authored Jan 18, 2023
1 parent b608a64 commit ceedc5f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/components/purchase-cart-list/purchase-cart-list.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Cross } from '~/icons'
import { Text, ButtonLink, PurchaseCartListItem } from '~/components'
import { Text, ButtonLink, Button, PurchaseCartListItem } from '~/components'
import formatCurrency from '~/utils/format-currency'

import type { PurchaseCartListProps } from './types'
Expand Down Expand Up @@ -48,9 +48,13 @@ const PurchaseCartList = ({ cart, onClose, onCartRemoval }: PurchaseCartListProp
</Text>
</div>

<ButtonLink variant="primary" to={`/checkout?cart_uuid=${uuid}`} className="text-center" onClick={onClose}>
<ButtonLink variant="primary" to={`/checkout?cart_uuid=${uuid}`} className="text-center mb-4" onClick={onClose}>
Checkout
</ButtonLink>

<Button variant="secondary" type="button" className="text-center w-full" onClick={onClose}>
Continue Shopping
</Button>
</div>
)
}
Expand Down

0 comments on commit ceedc5f

Please sign in to comment.