Skip to content

Commit 27b982a

Browse files
committed
Remove unused imports
1 parent 5e13493 commit 27b982a

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

components/Cart/CartPage/CartItemsContainer.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Link from 'next/link';
22
import { v4 } from 'uuid';
3-
import { useContext, useState, useEffect } from 'react';
3+
import { useContext, useState } from 'react';
44

55
import { useQuery, useMutation } from '@apollo/react-hooks';
66

components/Cart/CartPage/MobileCart.component.jsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import MobileCartItem from './MobileCartItem.component';
22

3-
const MobileCart = ({ cart }) => {
3+
const MobileCart = ({ cart, handleRemoveProductClick }) => {
44
return (
55
<section
66
//className="container mx-auto bg-white md:hidden lg:hidden xl:hidden"
77
className="bg-white md:hidden lg:hidden xl:hidden"
88
>
99
<div className="flex items-center justify-center">
1010
<div className="container">
11-
<table className="flex flex-row flex-no-wrap my-5 overflow-hidden rounded-lg sm:bg-white sm:shadow-lg" style={{width: "365px"}}>
11+
<table
12+
className="flex flex-row flex-no-wrap my-5 overflow-hidden rounded-lg sm:bg-white sm:shadow-lg"
13+
style={{ width: '365px' }}
14+
>
1215
<thead className="text-black">
1316
<tr className="flex flex-col mb-2 bg-gray-200 rounded-l-lg flex-no wrap sm:table-row sm:rounded-none sm:mb-0">
1417
<th className="p-3 text-left">Fjern</th>
@@ -113,19 +116,14 @@ const MobileCart = ({ cart }) => {
113116
</div>
114117
</div>
115118

116-
<div
117-
//className="flex flex-col"
118-
className="flex flex-col justify-between"
119-
>
119+
<div className="flex flex-col justify-between">
120120
{cart.products.length &&
121121
cart.products.map((item) => (
122122
<MobileCartItem
123123
key={item.productId}
124124
item={item}
125125
products={cart.products}
126-
// updateCartProcessing={updateCartProcessing}
127-
// handleRemoveProductClick={handleRemoveProductClick}
128-
// updateCart={updateCart}
126+
handleRemoveProductClick={handleRemoveProductClick}
129127
/>
130128
))}
131129
</div>

0 commit comments

Comments
 (0)