Skip to content

Commit

Permalink
move ssdc appointment link to content
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicarrojado committed Mar 26, 2024
1 parent e3acd8b commit 59c3f3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
11 changes: 7 additions & 4 deletions app/topics/ssdc-appointment-slots/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ export default function SsdcAppointmentSlots() {
<abbr title="Singapore Safety Driving Centre" className="no-underline">
SSDC
</abbr>
, you may need to book an appointment depending on the course you are
interested or the service you are looking for. The appointment slots for
these services are sometimes fully booked and you will need to
constantly check the{" "}
, you may need to{" "}
<Anchor href="https://ssdcl.com.sg/e-appointment/" isExternal>
book an appointment
</Anchor>{" "}
depending on the course you are interested or the service you are
looking for. The appointment slots for these services are sometimes
fully booked and you will need to constantly check the{" "}
<abbr title="Singapore Safety Driving Centre" className="no-underline">
SSDC
</abbr>{" "}
Expand Down
11 changes: 1 addition & 10 deletions app/topics/ssdc-appointment-slots/ssdc-slots-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,27 @@ export function SsdcSlotsTable() {
service: SsdcService.ENROLMENT_WEEKEND,
title: "Class 3 / 3A School Enrolment (weekend)",
lastAvailableDate: ssdcSlotsDatesMap[SsdcService.ENROLMENT_WEEKEND],
calendarLink: "https://ssdcl.com.sg/e-appointment/",
},
{
service: SsdcService.PRIVATE_LEARNERS,
title: "Private Learners",
lastAvailableDate: ssdcSlotsDatesMap[SsdcService.PRIVATE_LEARNERS],
calendarLink: "https://ssdcl.com.sg/e-appointment/",
},
{
service: SsdcService.PRACTICAL_LESSON_BOOKING,
title: "Class 3 / 3A Practical Lesson Booking",
lastAvailableDate:
ssdcSlotsDatesMap[SsdcService.PRACTICAL_LESSON_BOOKING],
calendarLink: "https://ssdcl.com.sg/e-appointment/",
},
{
service: SsdcService.OTHER_COURSES_ENROLMENT,
title: "Other Courses Enrolment (weekend)",
lastAvailableDate: ssdcSlotsDatesMap[SsdcService.OTHER_COURSES_ENROLMENT],
calendarLink: "https://ssdcl.com.sg/e-appointment/",
},
{
service: SsdcService.FOREIGN_LICENCE_WEEKEND,
title: "Foreign Licence Package (weekend)",
lastAvailableDate: ssdcSlotsDatesMap[SsdcService.FOREIGN_LICENCE_WEEKEND],
calendarLink: "https://ssdcl.com.sg/e-appointment/",
},
];

Expand All @@ -76,11 +71,7 @@ export function SsdcSlotsTable() {
<TableBody>
{ssdcSlotsInfoItems.map((slotsInfoItem) => (
<TableRow key={slotsInfoItem.service}>
<TableCell className="font-medium">
<Anchor href={slotsInfoItem.calendarLink} isExternal>
{slotsInfoItem.title}
</Anchor>
</TableCell>
<TableCell className="font-medium">{slotsInfoItem.title}</TableCell>
<TableCell className="text-right">
{slotsInfoItem.lastAvailableDate}
</TableCell>
Expand Down
1 change: 0 additions & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export type SsdcSlotsInfo = {
service: SsdcService;
title: string;
lastAvailableDate: string;
calendarLink: string;
};
export type SsdcSlotsInfoItems = Array<SsdcSlotsInfo>;

Expand Down

0 comments on commit 59c3f3e

Please sign in to comment.