Skip to content

Commit

Permalink
fix: timeline 시간 올바르게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
geongyu09 committed Sep 1, 2024
1 parent 5a4e3d2 commit 8c10eec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ export const TimelineCell = ({

return (
<div className="w-full">
<Txt
typography="h6"
className="block pb-8"
>{`${startTime.getMonth()}${startTime.getDate()}일 (${convertDay(
startTime.getDay()
)})`}</Txt>
<Txt typography="h6" className="block pb-8">{`${
startTime.getMonth() + 1
}${startTime.getDate()}일 (${convertDay(startTime.getDay())})`}</Txt>
<div className="w-full flex">
{dates.map((date, index) => (
<TimelineRow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const TimelineRow = ({ date, isLast, index }: TimelineRowProps) => {
<span className="flex-1 border-l border-gray-300 translate-x-6 mb-8">
<Txt
className={cn("-translate-x-1/2 block w-fit -translate-y-6 h-2", {
"opacity-0": minimumIntegerDigits(date.getMinutes(), 2) === "30",
"opacity-0":
minimumIntegerDigits(date.getMinutes(), 2) === "30" && isLast,
})}
>
{dateString}
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/constants/application/28.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ export const APPLICATION_TIMELINE: ApplicationTimeline = {
seperate: 30,
time: [
{
startTime: new Date(2024, 9, 23, 10, 0, 0),
endTime: new Date(2024, 9, 23, 20, 30, 0),
startTime: new Date(2024, 8, 23, 10, 0, 0),
endTime: new Date(2024, 8, 23, 20, 30, 0),
},
{
startTime: new Date(2024, 9, 24, 10, 0, 0),
endTime: new Date(2024, 9, 24, 20, 30, 0),
startTime: new Date(2024, 8, 24, 10, 0, 0),
endTime: new Date(2024, 8, 24, 20, 30, 0),
},
{
startTime: new Date(2024, 9, 25, 10, 0, 0),
endTime: new Date(2024, 9, 25, 20, 30, 0),
startTime: new Date(2024, 8, 25, 10, 0, 0),
endTime: new Date(2024, 8, 25, 20, 30, 0),
},
],
disableTime: [],
Expand Down

0 comments on commit 8c10eec

Please sign in to comment.