Move receipt total below

This commit is contained in:
Michael Zhang 2022-11-04 12:05:04 -05:00
parent 14f428ae2d
commit cd6a065f87

View file

@ -70,6 +70,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" } : {}}>
@ -80,9 +84,7 @@ const Home: NextPage = () => {
</span>
</div>
{receipt.map((itemAtom, i) => {
return <ReceiptItem itemAtom={itemAtom} key={`receiptItem-${i}`} />;
})}
<hr />
{calculated.totalMap.size > 0 && (
<>