Skip to content

Commit ab390bf

Browse files
alcercujaybuidl
authored andcommitted
feat(web): improve timeline titles and subtitles
1 parent 13ea657 commit ab390bf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web/src/pages/Cases/CaseDetails/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ const getTimeline = (
6363
"Evidence Period",
6464
"Voting Period",
6565
"Appeal Period",
66-
"Execution Period",
66+
"Executed",
6767
];
6868
return titles.map((title, i) => ({
6969
title,
7070
subitems:
71-
currentPeriodIndex === i
71+
i === 3
72+
? []
73+
: currentPeriodIndex === i
7274
? [
7375
secondsToDayHourMinute(
7476
getTimeLeft(
@@ -78,7 +80,7 @@ const getTimeline = (
7880
),
7981
]
8082
: currentPeriodIndex > i
81-
? ["00d 00h"]
83+
? ["Done!"]
8284
: [secondsToDayHourMinute(dispute?.subcourtID.timesPerPeriod[i])],
8385
}));
8486
};

0 commit comments

Comments
 (0)