Skip to content

Commit

Permalink
Add disclaimer when no available Wharton Club applications to add to …
Browse files Browse the repository at this point in the history
…cycle.
  • Loading branch information
julianweng committed Jan 6, 2024
1 parent ae33309 commit 1559d9f
Showing 1 changed file with 34 additions and 17 deletions.
51 changes: 34 additions & 17 deletions frontend/components/Settings/WhartonApplicationCycles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,23 +226,40 @@ const WhartonApplicationCycles = (): ReactElement => {
{membershipCycle && membershipCycle.name && (
<>
<Subtitle>Club Membership for {membershipCycle.name}</Subtitle>
<div
style={{ paddingLeft: 20, paddingRight: 20, paddingTop: '20px' }}
>
<Select
onChange={(e) => setClubsSelectedMembership([...e])}
value={clubsSelectedMembership}
options={clubOptionsMembership}
isMulti
/>
</div>
<button
className="button is-primary"
style={{ position: 'absolute', bottom: 10, right: 10 }}
onClick={closeMembershipModal}
>
Submit
</button>
{clubOptionsMembership.length === 0 ? (
<p style={{ paddingLeft: 10, paddingRight: 10 }}>
No club applications are currently active.
<br /> Please visit the{' '}
<a href="https://pennclubs.com/admin/scripts">
Admin Scripts
</a>{' '}
page to initialize new applications for the current cycle.
</p>
) : (
<>
<div
style={{
paddingLeft: 20,
paddingRight: 20,
paddingTop: '20px',
}}
>
<Select
onChange={(e) => setClubsSelectedMembership([...e])}
value={clubsSelectedMembership}
options={clubOptionsMembership}
isMulti
/>
</div>
<button
className="button is-primary"
style={{ position: 'absolute', bottom: 10, right: 10 }}
onClick={closeMembershipModal}
>
Submit
</button>
</>
)}
</>
)}
</Modal>
Expand Down

0 comments on commit 1559d9f

Please sign in to comment.