Skip to content

Commit

Permalink
Merge branch 'master' into scp
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Oct 4, 2024
2 parents b5c22d7 + e579cae commit a9df579
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/cc-recruitments/all/[id]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ export default async function CCApplicantDetails({ params }) {
<Stack direction="column" spacing={1}>
<Typography
variant="h2"
wordWrap="break-word"
textAlign={{ xs: "center", lg: "left" }}
sx={{
fontSize: { xs: 25, lg: 38 },
wordBreak: "break-word"
}}
>
{user.firstName} {user.lastName}
Expand Down
1 change: 1 addition & 0 deletions src/app/clubs/[id]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default async function Club({ params }) {
banner={club.banner}
width={640}
height={480}
priority={true}
/>
</Card>
<Box my={4}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/profile/[id]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ export default async function Profile({ params }) {
<Stack direction="column" spacing={1}>
<Typography
variant="h2"
wordWrap="break-word"
textAlign={{ xs: "center", lg: "left" }}
sx={{
fontSize: { xs: 25, lg: 38 },
wordBreak: "break-word"
}}
>
{user.firstName} {user.lastName}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ export default function Calendar({ events, holidays, allClubs }) {
};

const allEvents = events?.filter(
(event) => event?.status?.state !== "deleted"
(event) => event?.status?.state !== "deleted",
);
const mergedEvents = [...allEvents, ...holidays];

const handleEventMouseEnter = (info) => {
const { event, el } = info;
const clubName = allClubs.find(
(club) => club.cid === event.extendedProps.clubid
(club) => club.cid === event.extendedProps.clubid,
)?.name;
const content = `<strong>${event.title}</strong> ${
event.extendedProps.clubid ? "by" : ""
Expand Down Expand Up @@ -122,7 +122,7 @@ export default function Calendar({ events, holidays, allClubs }) {
border: 1px solid ${theme.palette.background.neutral}!important;
}
`}</style>

<FullCalendar
ref={calendarRef}
events={mergedEvents}
Expand Down
2 changes: 2 additions & 0 deletions src/components/clubs/ClubBanner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function ClubBanner({
objectFit = null,
dim = false,
imageProps = {},
priority = false,
}) {
const theme = useTheme();
const isDesktop = useMediaQuery(theme.breakpoints.up("lg"));
Expand Down Expand Up @@ -63,6 +64,7 @@ export default function ClubBanner({
onError={() =>
setImg(getPlaceholder({ seed: name, w: width, h: height }))
}
priority={priority}
{...imageProps}
/>
{logo ? (
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/EventsFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function EventsFilter({ name, club, state }) {
`${pathname}?${createQueryString("club", e.target.value)}`,
);
}}
value={club}
value={clubs.length ? club : ""}
>
<MenuItem key="all" value="">
All Clubs
Expand Down
2 changes: 1 addition & 1 deletion src/components/members/MemberForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function MemberUserInput({ control, watch, setValue, user, setUser }) {
height={80}
/>
<Stack direction="column" spacing={1}>
<Typography variant="h4" wordWrap="break-word">
<Typography variant="h4" sx={{ wordBreak: "break-word" }}>
{user.firstName} {user.lastName}
</Typography>
<Typography
Expand Down

0 comments on commit a9df579

Please sign in to comment.