Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 26 additions & 27 deletions submissions/bukunmiAdeniyi/React/src/components/CartList.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
import React from "react"
import React from "react";

import './css/CartList.css'
import "./css/CartList.css";

import { FaTimes, FaMinus, FaPlus } from 'react-icons/fa'
import { FaTimes, FaMinus, FaPlus } from "react-icons/fa";

export const CartList = ({cartItem, addCart, onRemove, removeMenu}) => {
export const CartList = ({ cartItem, addCart, onRemove, removeMenu }) => {
return (
<div>
<div className="cart-item">
<FaTimes onClick={() => removeMenu(cartItem)} className="fa-icons-x" />
<img className="cart-img" src={cartItem.image} alt={cartItem.title} />

return (
<div>
<div className='cart-item' >

<FaTimes onClick={() => removeMenu(cartItem)} className='fa-icons-x' />
<img className='cart-img' src={cartItem.image} alt={cartItem.title} />

<span className='cart-name'>{cartItem.title}</span>
<span className="cart-name">{cartItem.title}</span>

<span className='price'>#{cartItem.cost * cartItem.qty} </span>
<span className="price">#{cartItem.cost * cartItem.qty} </span>

<div className='qty-btn'>

<button onClick={() => addCart(cartItem)} ><FaPlus /></button>
<span className='qty'>{cartItem.qty}</span>
<button onClick={() => onRemove(cartItem)} ><FaMinus /></button>

</div>
</div>

<hr />

<div className="qty-btn">
<button onClick={() => addCart(cartItem)}>
<FaPlus />
</button>
<span className="qty">{cartItem.qty}</span>
<button onClick={() => onRemove(cartItem)}>
<FaMinus />
</button>
</div>
)
}
</div>

<hr />
</div>
);
};

export default CartList
export default CartList;
1 change: 1 addition & 0 deletions submissions/pelumiAdetoye/REACT/react-app
Submodule react-app added at 1dbe1b
2 changes: 1 addition & 1 deletion submissions/pelumiAdetoye/css/html/vendor.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@

<button class="addtocart" id="addtocart8">Add to Cart</button>

<!-- <button class="removecart" style="display: none;">
<!-- <button class=" cart" style="display: none;">
<img src = "../imgs/remove.svg" alt = ""/> Remove
</button> -->
</div>
Expand Down
Binary file modified tests/setup/winos/python.exe
Binary file not shown.