Skip to content

Commit e522a2c

Browse files
committed
Update CartContents.component.tsx
1 parent f282b00 commit e522a2c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/Cart/CartContents.component.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ const CartContents = () => {
108108
}}
109109
className="w-16 px-2 py-1 text-center border border-gray-300 rounded mr-2"
110110
/>
111-
<button
112-
onClick={() => handleRemoveProductClick(item.key, data.cart.contents.nodes)}
113-
className="text-red-500 hover:text-red-700"
114-
disabled={updateCartProcessing}
111+
<Button
112+
handleButtonClick={() => handleRemoveProductClick(item.key, data.cart.contents.nodes)}
113+
color="red"
114+
buttonDisabled={updateCartProcessing}
115115
>
116116
Fjern
117-
</button>
117+
</Button>
118118
</div>
119119
<div className="ml-4">
120120
<p className="text-lg font-semibold">{item.subtotal}</p>
@@ -129,7 +129,7 @@ const CartContents = () => {
129129
</div>
130130
{!isCheckoutPage && (
131131
<Link href="/kasse" passHref>
132-
<Button className="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
132+
<Button fullWidth>
133133
GÅ TIL KASSE
134134
</Button>
135135
</Link>
@@ -140,7 +140,7 @@ const CartContents = () => {
140140
<div className="text-center">
141141
<h2 className="text-2xl font-bold mb-4">Ingen produkter i handlekurven</h2>
142142
<Link href="/produkter" passHref>
143-
<Button className="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
143+
<Button>
144144
Fortsett å handle
145145
</Button>
146146
</Link>

0 commit comments

Comments
 (0)