Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Oct 1, 2024
1 parent 6b4bd66 commit a22056d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/components/pages/CashierV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ const CashierV2 = ({ items, orders, submitPayload }: props) => {
reducer,
OrderEntity.createNew({ orderId: nextOrderId }),
);
const [orderItems, setOrderItems] = useState<WithId<ItemEntity>[]>([]);
const [received, setReceived] = useState("");
const [description, setDescription] = useState("");
const [inputStatus, setInputStatus] =
Expand Down Expand Up @@ -194,13 +193,6 @@ const CashierV2 = ({ items, orders, submitPayload }: props) => {
<p>{item.name}</p>
<p>{item.price}</p>
<p>{type2label[item.type]}</p>
<Button
onClick={() => {
setOrderItems((prevItems) => [...prevItems, item]);
}}
>
追加
</Button>
</div>
))}
</div>
Expand All @@ -212,7 +204,6 @@ const CashierV2 = ({ items, orders, submitPayload }: props) => {
<li>注文をクリア: Esc</li>
</ul>
<Button onClick={submitOrder}>提出</Button>
<Button onClick={() => setOrderItems([])}>クリア</Button>
<h1 className="text-lg">{`No. ${nextOrderId}`}</h1>
<div className="border-8">
<p>合計金額</p>
Expand Down

0 comments on commit a22056d

Please sign in to comment.