diff --git a/packages/synapse-react-client/src/components/AccessRequirementList/AccessRequirementList.tsx b/packages/synapse-react-client/src/components/AccessRequirementList/AccessRequirementList.tsx index 6dfe6e42f8..bdaa8d3e20 100644 --- a/packages/synapse-react-client/src/components/AccessRequirementList/AccessRequirementList.tsx +++ b/packages/synapse-react-client/src/components/AccessRequirementList/AccessRequirementList.tsx @@ -18,6 +18,7 @@ import DataAccessRequestAccessorsFilesForm from './ManagedACTAccessRequirementRe import RequestDataAccessSuccess from './ManagedACTAccessRequirementRequestFlow/RequestDataAccessSuccess' import { Box, + Button, Dialog, DialogContent, DialogTitle, @@ -41,6 +42,7 @@ import TwoFactorAuthEnabledRequirement from './RequirementItem/TwoFactorAuthEnab import { AccessRequirementListItem } from './AccessRequirementListItem' import { useSynapseContext } from '../../utils/context/SynapseContext' import { useCanShowManagedACTWikiInWizard } from './AccessRequirementListUtils' +import { DialogActions } from '@mui/material' export type AccessRequirementListProps = { entityId: string // will show this entity info @@ -369,10 +371,17 @@ export default function AccessRequirementList( renderContent = break case RequestDataStep.SHOW_ALL_ARS: - renderContent = content - break default: - renderContent = content + renderContent = ( + <> + {content} + + + + + ) } return ( diff --git a/packages/synapse-react-client/src/components/ChallengeTeamWizard/ChallengeTeamWizard.tsx b/packages/synapse-react-client/src/components/ChallengeTeamWizard/ChallengeTeamWizard.tsx index a68c6918e7..3909b6b095 100644 --- a/packages/synapse-react-client/src/components/ChallengeTeamWizard/ChallengeTeamWizard.tsx +++ b/packages/synapse-react-client/src/components/ChallengeTeamWizard/ChallengeTeamWizard.tsx @@ -466,9 +466,16 @@ const ChallengeTeamWizard: React.FunctionComponent< onClose() } - const onConfirmHandlerMap: Record Promise> | void = { + const onConfirmHandlerMap: Record< + string, + (() => Promise) | (() => undefined) + > | void = { CREATE_NEW_TEAM: handleCreateTeam, JOIN_REQUEST_FORM: handleRequestMembership, + JOIN_REQUEST_SENT: () => { + hide() + return undefined + }, } // Determine modal content based on step.id