From d96a3db1a47836eec5bfd45598d23828bebc543d Mon Sep 17 00:00:00 2001 From: toririm Date: Sun, 6 Oct 2024 15:29:54 +0900 Subject: [PATCH] =?UTF-8?q?pos=20/cashier-v2=20=E5=89=B2=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E5=8A=9B=E6=99=82=E3=81=AB=E5=89=8D=E5=9B=9E=E3=81=AE=E6=B3=A8?= =?UTF-8?q?=E6=96=87=E5=86=85=E5=AE=B9=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/organisms/DiscountInput.tsx | 35 ++++++++++++++++------ 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/app/components/organisms/DiscountInput.tsx b/app/components/organisms/DiscountInput.tsx index 62ed4078..b8501f3a 100644 --- a/app/components/organisms/DiscountInput.tsx +++ b/app/components/organisms/DiscountInput.tsx @@ -6,6 +6,7 @@ import { useState, } from "react"; import type { WithId } from "~/lib/typeguard"; +import { cn } from "~/lib/utils"; import { OrderEntity } from "~/models/order"; import { useFocusRef } from "../functional/useFocusRef"; import { ThreeDigitsInput } from "../molecules/ThreeDigitsInput"; @@ -74,7 +75,7 @@ const DiscountInput = ({ /> -

+

{!isComplete && (
{/* */} @@ -83,20 +84,36 @@ const DiscountInput = ({ )} {isComplete && (discountOrder instanceof OrderEntity ? ( -
- -

- {lastPurchasedCups} - 杯分 -

-
+ <> +
+ +

+ {lastPurchasedCups} + 杯分 +

+
+
    + {discountOrder.items.map((item, idx) => ( +
  • + {item.name} +
  • + ))} +
+ ) : (

無効な番号

))} -

+
); };