diff --git a/lazy-timer-fe/src/components/Cart.jsx b/lazy-timer-fe/src/components/Cart.jsx new file mode 100644 index 0000000..9e08ee1 --- /dev/null +++ b/lazy-timer-fe/src/components/Cart.jsx @@ -0,0 +1,70 @@ +import React from 'react'; +import { MdOutlineCancel } from 'react-icons/md'; +import { AiOutlinePlus, AiOutlineMinus } from 'react-icons/ai'; + +import { useStateContext } from '../contexts/ContextProvider'; +import { cartData } from '../data/dummy'; +import { Button } from '.'; + +const Cart = () => { + const { currentColor } = useStateContext(); + + return ( +
+
+
+

Shopping Cart

+
+ {cartData?.map((item, index) => ( +
+
+
+ +
+

{item.name}

+

{item.category}

+
+

{item.price}

+
+

+

0

+

+
+
+
+
+
+
+ ))} +
+
+

Sub Total

+

$890

+
+
+

Total

+

$890

+
+
+
+
+
+
+ ); +}; + +export default Cart; diff --git a/lazy-timer-fe/src/components/ChartsHeader.jsx b/lazy-timer-fe/src/components/ChartsHeader.jsx new file mode 100644 index 0000000..43f5e2f --- /dev/null +++ b/lazy-timer-fe/src/components/ChartsHeader.jsx @@ -0,0 +1,13 @@ +import React from 'react'; + +const ChartsHeader = ({ category, title }) => ( +
+
+

Chart

+

{category}

+
+

{title}

+
+); + +export default ChartsHeader;