Skip to content

Commit

Permalink
feat: 취소 위약금 수수료 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
DaeHee99 committed Dec 29, 2024
2 parents 17ffd9e + 1d8207d commit 60c5352
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { memo } from "react";
import { memo, useMemo } from "react";
import { priceToString } from "@/utils";

interface Props {
discountPrice: number;
}

function CancelPrice({ discountPrice }: Props) {
const MallangTripFee = useMemo(() => 0.9, []);

return (
<div className="flex flex-col gap-1 my-7">
<p className="text-lg text-black font-bold">총 위약금 수익</p>
<p className="text-sm text-darkgray">{`${priceToString(
discountPrice
discountPrice * MallangTripFee
)}원`}</p>
</div>
);
Expand Down

0 comments on commit 60c5352

Please sign in to comment.