Skip to content

Commit

Permalink
Remove member check from request membership and apply buttons to disp…
Browse files Browse the repository at this point in the history
…lay proper status of request.
  • Loading branch information
julianweng committed Jan 30, 2024
1 parent 26f4fde commit b5422f2
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions frontend/components/ClubPage/Actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ const Actions = ({
<div className={className} style={style}>
<Wrapper>
{SHOW_MEMBERSHIP_REQUEST &&
!inClub &&
club.members.length > 0 &&
isMembershipOpen &&
club.accepting_members && (
Expand All @@ -293,20 +292,17 @@ const Actions = ({
updateRequests={updateRequests}
/>
)}
{SHOW_APPLICATIONS &&
!inClub &&
!isMembershipOpen &&
club.accepting_members && (
<Link
href={CLUB_APPLY_ROUTE()}
as={CLUB_APPLY_ROUTE(code)}
passHref
>
<ActionButton className="button is-success">
<Icon name="edit" /> Apply
</ActionButton>
</Link>
)}
{SHOW_APPLICATIONS && !isMembershipOpen && club.accepting_members && (
<Link
href={CLUB_APPLY_ROUTE()}
as={CLUB_APPLY_ROUTE(code)}
passHref
>
<ActionButton className="button is-success">
<Icon name="edit" /> Apply
</ActionButton>
</Link>
)}
{canEdit && (
<Link href={CLUB_EDIT_ROUTE()} as={CLUB_EDIT_ROUTE(code)} passHref>
<ActionButton className="button is-success">
Expand Down

0 comments on commit b5422f2

Please sign in to comment.