From 1d8207ded46c0f899780b9f6ea7d35a8e14757b1 Mon Sep 17 00:00:00 2001 From: Daehee Date: Sun, 29 Dec 2024 16:24:56 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B7=A8=EC=86=8C=20=EC=9C=84=EC=95=BD?= =?UTF-8?q?=EA=B8=88=20=EC=88=98=EC=88=98=EB=A3=8C=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Management/Party/PartyDetail/CancelPrice/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/AdminPage/Management/Party/PartyDetail/CancelPrice/index.tsx b/src/pages/AdminPage/Management/Party/PartyDetail/CancelPrice/index.tsx index 50755f3f..01671045 100644 --- a/src/pages/AdminPage/Management/Party/PartyDetail/CancelPrice/index.tsx +++ b/src/pages/AdminPage/Management/Party/PartyDetail/CancelPrice/index.tsx @@ -1,4 +1,4 @@ -import { memo } from "react"; +import { memo, useMemo } from "react"; import { priceToString } from "@/utils"; interface Props { @@ -6,11 +6,13 @@ interface Props { } function CancelPrice({ discountPrice }: Props) { + const MallangTripFee = useMemo(() => 0.9, []); + return (

총 위약금 수익

{`${priceToString( - discountPrice + discountPrice * MallangTripFee )}원`}

);