Skip to content

Commit

Permalink
rename vote items to vote options
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoalzate committed Aug 7, 2024
1 parent 9121f30 commit 80bf4ff
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 80bf4ff

Please sign in to comment.