Skip to content

Commit

Permalink
feat(teamProjectsHeader): Removed stray react fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisraymond-uchicago committed Oct 30, 2023
1 parent f305588 commit 644dcbd
Showing 1 changed file with 34 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,44 +61,42 @@ const TeamProjectModal = ({ isModalOpen, setIsModalOpen, setBannerText }) => {
}
if (data) {
modalContent = (
<React.Fragment>
<Modal
className='team-project-modal'
title='Team Projects'
open={isModalOpen}
onCancel={() => setIsModalOpen(false)}
closable={localStorage.getItem('teamProject')}
maskClosable={localStorage.getItem('teamProject')}
keyboard={localStorage.getItem('teamProject')}
footer={[
<Button
key='submit'
type='primary'
disabled={!selectedTeamProject}
onClick={() => closeAndUpdateTeamProject()}
>
Submit
</Button>,
]}
>
<div className='team-project-modal_modal-description'>
Please select your team.
</div>
<Select
id='input-selectTeamProjectDropDown'
labelInValue
defaultValue={selectedTeamProject}
onChange={(e) => setSelectedTeamProject(e.value)}
placeholder='-select one of the team projects below-'
fieldNames={{ label: 'teamName', value: 'teamName' }}
options={data.teams}
dropdownStyle={{ width: '100%' }}
/>
</Modal>
</React.Fragment>
<Modal
className='team-project-modal'
title='Team Projects'
open={isModalOpen}
onCancel={() => setIsModalOpen(false)}
closable={localStorage.getItem('teamProject')}
maskClosable={localStorage.getItem('teamProject')}
keyboard={localStorage.getItem('teamProject')}
footer={[
<Button
key='submit'
type='primary'
disabled={!selectedTeamProject}
onClick={() => closeAndUpdateTeamProject()}
>
Submit
</Button>,
]}
>
<div className='team-project-modal_modal-description'>
Please select your team.
</div>
<Select
id='input-selectTeamProjectDropDown'
labelInValue
defaultValue={selectedTeamProject}
onChange={(e) => setSelectedTeamProject(e.value)}
placeholder='-select one of the team projects below-'
fieldNames={{ label: 'teamName', value: 'teamName' }}
options={data.teams}
dropdownStyle={{ width: '100%' }}
/>
</Modal>
);
}
return <React.Fragment>{modalContent}</React.Fragment>;
return <React.Fragment>{ modalContent }</React.Fragment>;
};

TeamProjectModal.propTypes = {
Expand Down

0 comments on commit 644dcbd

Please sign in to comment.