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