File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11import Link from 'next/link' ;
22import { v4 } from 'uuid' ;
3- import { useContext , useState , useEffect } from 'react' ;
3+ import { useContext , useState } from 'react' ;
44
55import { useQuery , useMutation } from '@apollo/react-hooks' ;
66
Original file line number Diff line number Diff line change 11import 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 >
You can’t perform that action at this time.
0 commit comments