Skip to content

Commit

Permalink
fix: more adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
SebassNoob committed Jan 2, 2024
1 parent 2bba4ec commit 8c92cb3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ const AttendanceMenu = ({ id }: AttendanceMenuProps) => {

return (
<>
<Stack gap={3} m={10}>
<Stack gap={3} m={20}>
<Title>Verify Attendance</Title>
<Text>
This page shows all ongoing service sessions. Click on a session to view the QR code.
</Text>
</Stack>
<Stack gap={10} m={10}>
<Stack gap={10} m={20}>
{visibleActiveSessions.map(({ hash, service_session_id }) => {
return <AttendanceMenuEntry service_session_id={service_session_id} key={hash} />;
})}
Expand All @@ -80,7 +80,7 @@ const AttendanceMenu = ({ id }: AttendanceMenuProps) => {

return (
<>
<Stack gap={3} m={15}>
<Stack gap={3} m={20}>
<Title>Verify Attendance</Title>
<Text>This page shows the QR code for the selected service session.</Text>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const fetchAttendanceDetails = async (service_session_id: number) => {
start_time: new Date(sessionDetails.start_time),
end_time: new Date(sessionDetails.end_time),
user_details: sessionUserDetails,
promotional_image: !!promo ? remapAssetUrl(promo) : null,
promotional_image: promo ? remapAssetUrl(promo) : null,
service_title: serviceTitle,
};
};
Expand Down
6 changes: 3 additions & 3 deletions interapp-frontend/src/app/attendance/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import './error-styles.css';

export default async function AttendancePage({
searchParams,
}: {
searchParams: Readonly<{ [key: string]: string | string[] | undefined }>;
}) {
}: Readonly<{
searchParams: { [key: string]: string | string[] | undefined };
}>) {
// if there is an id, it must be a number
if (searchParams.id instanceof Array || (searchParams.id && !/^\d+$/.test(searchParams.id)))
return (
Expand Down
6 changes: 3 additions & 3 deletions interapp-frontend/src/app/attendance/verify/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import './../error-styles.css';

export default function AttendanceVerifyPage({
searchParams,
}: {
searchParams: Readonly<{ [key: string]: string | string[] | undefined }>;
}) {
}: Readonly<{
searchParams: { [key: string]: string | string[] | undefined };
}>) {
if (searchParams.hash instanceof Array || searchParams.hash === undefined)
return (
<div className='error-container'>
Expand Down

0 comments on commit 8c92cb3

Please sign in to comment.