Skip to content

Commit d6c7056

Browse files
committed
Add SVG X to cart items
1 parent b7ce3d6 commit d6c7056

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

components/Cart/CartPage/CartItem.component.jsx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,29 @@ const CartItem = ({
1515
return (
1616
<tr className="bg-gray-100">
1717
<td className="px-4 py-2 border">
18-
<SVGCloseX />
18+
<span>
19+
<svg
20+
id="xsvg"
21+
onClick={() => {
22+
//setisExpanded(!isExpanded);
23+
}}
24+
25+
xmlns="http://www.w3.org/2000/svg"
26+
width="20"
27+
height="20"
28+
viewBox="0 0 20 20"
29+
fill="none"
30+
stroke="currentColor"
31+
strokeWidth="2"
32+
strokeLinecap="round"
33+
strokeLinejoin="round"
34+
className="feather feather-x"
35+
>
36+
<line x1="18" y1="6" x2="6" y2="18"></line>
37+
<line x1="6" y1="6" x2="18" y2="18"></line>
38+
</svg>
39+
40+
</span>
1941
</td>
2042
<td className="px-4 py-2 border">
2143
<img

0 commit comments

Comments
 (0)