Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Mallang-Trip/Web into de…
Browse files Browse the repository at this point in the history
…velop
  • Loading branch information
rangggu committed Dec 29, 2024
2 parents 63de95a + 1d8207d commit 423378f
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 423378f

Please sign in to comment.