Skip to content

Commit 7611005

Browse files
committed
Fix build errors
1 parent e2af0e7 commit 7611005

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Cart/CartContents.component.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const CartContents = () => {
136136
data.cart.contents.nodes,
137137
)
138138
}
139-
color="red"
139+
variant="secondary"
140140
buttonDisabled={updateCartProcessing}
141141
>
142142
Fjern
@@ -156,7 +156,7 @@ const CartContents = () => {
156156
{!isCheckoutPage && (
157157
<div className="flex justify-center mb-4">
158158
<Link href="/kasse" passHref>
159-
<Button fullWidth>GÅ TIL KASSE</Button>
159+
<Button variant="primary" fullWidth>GÅ TIL KASSE</Button>
160160
</Link>
161161
</div>
162162
)}
@@ -168,7 +168,7 @@ const CartContents = () => {
168168
Ingen produkter i handlekurven
169169
</h2>
170170
<Link href="/produkter" passHref>
171-
<Button>Fortsett å handle</Button>
171+
<Button variant="primary">Fortsett å handle</Button>
172172
</Link>
173173
</div>
174174
)}

src/components/Index/Hero.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Hero = () => (
2727
</h1>
2828
<Button
2929
href="/produkter"
30-
isHero
30+
variant="hero"
3131
>
3232
Se Utvalget
3333
</Button>

src/components/UI/Button.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const Button = ({
5656
fullWidth ? 'w-full md:w-auto' : ''
5757
}`;
5858

59-
if (href && variant === 'hero') {
59+
if (href) {
6060
return (
6161
<Link href={href} className={classes}>
6262
{children}

0 commit comments

Comments
 (0)