diff --git a/src/components/Plan/PlanItemBox.tsx b/src/components/Plan/PlanItemBox.tsx index 7d269110..31a926b7 100644 --- a/src/components/Plan/PlanItemBox.tsx +++ b/src/components/Plan/PlanItemBox.tsx @@ -52,6 +52,15 @@ const PlanItemBox = ({ } }; + const formatTime = (totalMinutes: number) => { + const hours = Math.floor(totalMinutes / 60); + const minutes = totalMinutes % 60; + if (hours === 0) { + return `${minutes}분`; + } + return `${hours}시간 ${minutes}분`; + }; + return ( <>