diff --git a/packages/berlin/src/pages/Event.tsx b/packages/berlin/src/pages/Event.tsx index 22b8093a..d82a633a 100644 --- a/packages/berlin/src/pages/Event.tsx +++ b/packages/berlin/src/pages/Event.tsx @@ -46,7 +46,7 @@ function Event() { ); const initialTab = useMemo( - () => (openCycles && openCycles.length > 0 ? 'upcoming' : 'past'), + () => (openCycles && openCycles.length > 0 ? 'open' : 'closed'), [openCycles], ); @@ -117,28 +117,28 @@ function Questions({ }) { const [activeTab, setActiveTab] = useState(initialTab); - const tabNames = ['upcoming', 'past']; + const tabNames = ['open', 'closed']; const tabs = { - upcoming: ( + open: ( setActiveTab('past'), + message: 'No open questions available.', + buttonMessage: 'Closed questions', + buttonOnClick: () => setActiveTab('closed'), }} /> ), - past: ( + closed: ( setActiveTab('upcoming'), + message: 'No closed questions available.', + buttonMessage: 'Open questions', + buttonOnClick: () => setActiveTab('open'), }} /> ),