afficher le x que lorsque la commande est confirmé ou en préparation et fix de la page Invoice d'admin
This commit is contained in:
@@ -105,8 +105,9 @@ const InvoiceItem = ({ invoice, onCancel }) => {
|
||||
<div className="invoice-item-products">
|
||||
<div className="invoice-product-delete">
|
||||
<h4 className='simple-item-title' >Produits</h4>
|
||||
<h1 className='simple-item-buttons'><FontAwesomeIcon icon={faTimes} className='btn-effacer-morceau' style={{ color: "red", cursor: 'pointer', margin: 'auto'}}
|
||||
onClick={() => onCancel(invoice.id)} /></h1>
|
||||
{(invoice.status == 0 || invoice.status == 2 )&&
|
||||
<h1 className='simple-item-buttons'><FontAwesomeIcon icon={faTimes} className='btn-effacer-morceau' style={{ color: "red", cursor: 'pointer', margin: 'auto' }}
|
||||
onClick={() => onCancel(invoice.id)} /></h1>}
|
||||
</div>
|
||||
<ul className="invoice-item-product-list">
|
||||
{invoice.products.map((p) => (
|
||||
|
Reference in New Issue
Block a user