Skip to content

Commit

Permalink
Revert "more prettier fixes for non-health"
Browse files Browse the repository at this point in the history
This reverts commit f61a9eb.
  • Loading branch information
sritanmotati committed Feb 12, 2025
1 parent a32245c commit ded17af
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frontend/components/ClubDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ const Details = ({ club }: DetailsProps): ReactElement => {
{applicationRequired ===
ClubApplicationRequired.ApplicationAndInterview
? 'Application & Interview'
: (CLUB_APPLICATIONS.find(
: CLUB_APPLICATIONS.find(
({ value }) => value === applicationRequired,
)?.label ?? 'Unknown')}
)?.label ?? 'Unknown'}
</>
)}
{isClubFieldShown('accepting_members') && (
Expand Down
3 changes: 1 addition & 2 deletions frontend/components/ClubPage/LiveEventsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import { FAIR_NAME, MEMBERSHIP_ROLE_NAMES } from '../../utils/branding'
export const LiveBanner = styled.div`
padding: 20px;
border-radius: 5px;
background-image:
radial-gradient(
background-image: radial-gradient(
circle at 15% 0,
rgba(216, 127, 200, 0.5),
rgba(73, 84, 244, 0.4) 36%
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Settings/FairEventsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const FairEventsTab = ({
)
const [selectedFair, setSelectedFair] = useState<number | null>(
fairs != null && !('detail' in fairs) && fairs.length > 0
? (initialSelection ?? fairs[0].id)
? initialSelection ?? fairs[0].id
: null,
)
const [fairEvents, setFairEvents] = useState<
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Settings/WhartonApplicationTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const WhartonApplicationTab = ({
const wordCount = application.questions.reduce(
(acc, question) =>
acc + question.question_type === ApplicationQuestionType.FreeResponse
? (question.word_limit ?? 0)
? question.word_limit ?? 0
: 0,
0,
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/constitutions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const ConstitutionDirectory = ({ clubs }: Props): ReactElement => {
{file.name}
</a>
) : (
(file.name ?? 'Hidden')
file.name ?? 'Hidden'
),
),
', ',
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/events/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const getServerSideProps = (async (ctx) => {
const clubMap = new Map(clubs.map((club) => [club.code, club]))
const eventsWithClubs = events.map((event) => ({
...event,
club: event.club ? (clubMap.get(event.club) ?? null) : null,
club: event.club ? clubMap.get(event.club) ?? null : null,
clubPublic: event.club == null || clubMap.get(event.club) !== undefined,
}))
return {
Expand Down

0 comments on commit ded17af

Please sign in to comment.