Skip to content

Commit

Permalink
Merge pull request #752 from lexicongovernance/main
Browse files Browse the repository at this point in the history
rename vote items to vote options (#751)
  • Loading branch information
diegoalzate authored Aug 7, 2024
2 parents 3df2fb8 + 99ad1a0 commit 89ea851
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions packages/berlin/src/components/cycles/Cycles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ type CyclesProps = {
function Cycles({ cycles, eventId, fallback }: CyclesProps) {
const navigate = useNavigate();

const formatDate = (date: string) => {
const eventEndDate = new Date(date);
return new Intl.DateTimeFormat('en-US', { month: 'long', day: 'numeric' }).format(eventEndDate);
};

const handleCycleClick = (cycleId: string) => {
navigate(`/events/${eventId}/cycles/${cycleId}`);
};
Expand All @@ -36,7 +31,6 @@ function Cycles({ cycles, eventId, fallback }: CyclesProps) {
onClick={() => handleCycleClick(cycle.id)}
>
<Body>{cycle?.questions[0]?.title}</Body>
<Body>{formatDate(cycle.endAt)}</Body>
</article>
))
) : (
Expand Down
2 changes: 1 addition & 1 deletion packages/berlin/src/pages/Cycle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function Cycle() {
{currentCycle?.options.length ? (
<FlexColumn>
<div className="flex w-full items-center justify-between">
<Subtitle>Vote items</Subtitle>
<Subtitle>Vote options</Subtitle>
<div className="flex cursor-pointer items-center gap-2">
<Body>Sort</Body>
<DropdownMenu>
Expand Down

0 comments on commit 89ea851

Please sign in to comment.