Skip to content

Commit

Permalink
Make clearing also close the quarter menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome-E committed Jan 29, 2024
1 parent 75e80a9 commit 599d2e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/src/pages/RoadmapPage/Quarter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ const Quarter: FC<QuarterProps> = ({ year, yearIndex, quarterIndex, data }) => {
<Button
variant={buttonVariant}
className="quarter-menu-btn red-menu-btn"
onClick={() => dispatch(clearQuarter({ yearIndex: yearIndex, quarterIndex: quarterIndex }))}
onClick={() => {
dispatch(clearQuarter({ yearIndex: yearIndex, quarterIndex: quarterIndex }));
setShowQuarterMenu(false);
}}
>
Clear
</Button>
Expand Down

0 comments on commit 599d2e2

Please sign in to comment.