Skip to content

Commit

Permalink
diet
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Jan 29, 2025
1 parent 2fed5b7 commit 4496167
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const AccessScopeDropdown: React.FC<Props> = (props: Props) => {
closeModal={() => setIsUserGroupSelectorOpen(false)}
selectedUserGroup={selectedUserGroup}
onSelect={onSelectUserGroup}
onCompleteSelect={() => setIsUserGroupSelectorOpen(false)}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ type Props = {
closeModal: () => void,
selectedUserGroup: PopulatedGrantedGroup[],
onSelect: (userGroup: PopulatedGrantedGroup) => void,
onCompleteSelect: () => void,
}

const UserGroupSelectorSubstance: React.FC<Props> = (props: Props) => {
const { selectedUserGroup, onSelect, onCompleteSelect } = props;
const { selectedUserGroup, onSelect, closeModal } = props;

const { t } = useTranslation();
const { data: userRelatedGroups } = useSWRxUserRelatedGroups();
Expand Down Expand Up @@ -46,7 +45,7 @@ const UserGroupSelectorSubstance: React.FC<Props> = (props: Props) => {
<button
type="button"
className="btn btn-primary mt-2 mx-auto"
onClick={onCompleteSelect}
onClick={closeModal}
>
{t('Done')}
</button>
Expand Down

0 comments on commit 4496167

Please sign in to comment.