Skip to content

Commit

Permalink
apply multiple filters on space activities (#7489)
Browse files Browse the repository at this point in the history
Co-authored-by: Bobby Kolev <[email protected]>
  • Loading branch information
reactoholic and bobbykolev authored Jan 23, 2025
1 parent 61e5445 commit 7e64a49
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ const LatestContributions = ({ limit, spaceMemberships }: LatestContributionsPro
const { isOpen, setIsOpen } = useDashboardContext();

const handleRoleSelect = (event: SelectChangeEvent<unknown>) =>
setFilter({
space: SPACE_OPTION_ALL,
setFilter(prevState => ({
...prevState,
role: event.target.value as ActivityFeedRoles | typeof ROLE_OPTION_ALL,
});
}));

const handleSpaceSelect = (event: SelectChangeEvent<unknown>) =>
setFilter({
setFilter(prevState => ({
...prevState,
space: event.target.value as string | typeof SPACE_OPTION_ALL,
role: ROLE_OPTION_ALL,
});
}));

const spaceOptions = useMemo(() => {
const spaces: Partial<SelectOption<string | typeof SPACE_OPTION_ALL>>[] =
Expand Down

0 comments on commit 7e64a49

Please sign in to comment.