Move receipt total below
This commit is contained in:
parent
7c3a53076f
commit
6c4130aaf3
1 changed files with 5 additions and 3 deletions
|
@ -48,6 +48,10 @@ const Home: NextPage = () => {
|
|||
/>
|
||||
</Form>
|
||||
|
||||
{receipt.map((itemAtom, i) => {
|
||||
return <ReceiptItem itemAtom={itemAtom} key={`receiptItem-${i}`} />;
|
||||
})}
|
||||
|
||||
<div>
|
||||
Receipt Total:
|
||||
<span style={total < calculated.subtotal ? { color: "red" } : {}}>
|
||||
|
@ -58,9 +62,7 @@ const Home: NextPage = () => {
|
|||
</span>
|
||||
</div>
|
||||
|
||||
{receipt.map((itemAtom, i) => {
|
||||
return <ReceiptItem itemAtom={itemAtom} key={`receiptItem-${i}`} />;
|
||||
})}
|
||||
<hr />
|
||||
|
||||
{calculated.totalMap.size > 0 && (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue