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:
Victor Turgeon
2022-11-25 12:19:02 -05:00
parent 565f677c38
commit a7f343545f
3 changed files with 12 additions and 11 deletions

View File

@@ -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) => (