mirror of
https://gitlab.com/davidels1986/ore-cart-checkout.git
synced 2026-10-30 02:59:13 +00:00
Enhance add-to-cart toast
Styled the added-to-cart toast with bold green/brand background and white text, including a green visual emphasis and a persistent View Cart action button. X-Lovable-Edit-ID: edt-940666bd-9011-493b-a9fb-b671b45a4e4e Co-authored-by: CyberTechDroid <229118619+CyberTechDroid@users.noreply.github.com>
This commit is contained in:
commit
a2fdf596dd
1 changed files with 2 additions and 1 deletions
|
|
@ -24,8 +24,9 @@ export function ProductCard({ product }: ProductCardProps) {
|
|||
toast({
|
||||
title: '✓ Added to cart',
|
||||
description: product.name,
|
||||
className: 'bg-green-600 text-white border-green-700 [&>div]:text-white',
|
||||
action: (
|
||||
<Button size="sm" variant="outline" onClick={() => setIsCartOpen(true)}>
|
||||
<Button size="sm" variant="outline" className="border-white text-white hover:bg-white/20 hover:text-white" onClick={() => setIsCartOpen(true)}>
|
||||
View Cart
|
||||
</Button>
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue