Make sure invoices card is visible only on orders other than unconfirmed (#944)
* Make sure invoices card is visible only on orders other than unconfirmed * Replace div with React.Fragment * Use short form of fragment and remove key
This commit is contained in:
parent
167b77e18a
commit
0578de63c6
1 changed files with 11 additions and 7 deletions
|
@ -254,13 +254,17 @@ const OrderDetailsPage: React.FC<OrderDetailsPageProps> = props => {
|
||||||
selectedChannelName={order?.channel?.name}
|
selectedChannelName={order?.channel?.name}
|
||||||
/>
|
/>
|
||||||
<CardSpacer />
|
<CardSpacer />
|
||||||
<OrderInvoiceList
|
{order?.status !== OrderStatus.UNCONFIRMED && (
|
||||||
invoices={order?.invoices}
|
<>
|
||||||
onInvoiceClick={onInvoiceClick}
|
<OrderInvoiceList
|
||||||
onInvoiceGenerate={onInvoiceGenerate}
|
invoices={order?.invoices}
|
||||||
onInvoiceSend={onInvoiceSend}
|
onInvoiceClick={onInvoiceClick}
|
||||||
/>
|
onInvoiceGenerate={onInvoiceGenerate}
|
||||||
<CardSpacer />
|
onInvoiceSend={onInvoiceSend}
|
||||||
|
/>
|
||||||
|
<CardSpacer />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<OrderCustomerNote note={maybe(() => order.customerNote)} />
|
<OrderCustomerNote note={maybe(() => order.customerNote)} />
|
||||||
</div>
|
</div>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
Loading…
Reference in a new issue