diff --git a/client/src/components/AdministratorNavigationPanel.tsx b/client/src/components/AdministratorNavigationPanel.tsx index 2c5b724..6c0ecb2 100644 --- a/client/src/components/AdministratorNavigationPanel.tsx +++ b/client/src/components/AdministratorNavigationPanel.tsx @@ -63,9 +63,8 @@ export default function AdministratorNavigationPanel() { return (
Users
diff --git a/client/src/pages/CreateSchedulePage.tsx b/client/src/pages/CreateSchedulePage.tsx index e3cb963..5db5f5d 100644 --- a/client/src/pages/CreateSchedulePage.tsx +++ b/client/src/pages/CreateSchedulePage.tsx @@ -22,7 +22,7 @@ const initialValues = { time: "", location: "", postalCode: "", - status: "Up coming" // Set the default status + status: "Upcoming" // Set the default status }; @@ -57,7 +57,7 @@ export default function CreateSchedulePage() { data.dateTime = dateTime.toISOString(); data.location = data.location.trim(); data.postalCode = data.postalCode.trim(); - data.status = "Up coming"; // Set status to "Up coming" explicitly + data.status = "Upcoming"; // Set status to "Up coming" explicitly console.log("Data to be sent:", data); diff --git a/client/src/pages/ManageSchedulePage.tsx b/client/src/pages/ManageSchedulePage.tsx index fe05650..e1dcd3b 100644 --- a/client/src/pages/ManageSchedulePage.tsx +++ b/client/src/pages/ManageSchedulePage.tsx @@ -16,7 +16,7 @@ interface Schedule { const determineStatus = (dateTime: string): string => { const now = dayjs(); const scheduleDateTime = dayjs(dateTime); - return scheduleDateTime.isAfter(now) ? "Up coming" : "Ended"; + return scheduleDateTime.isAfter(now) ? "Upcoming" : "Ended"; }; export default function ManageSchedulePage() { diff --git a/client/src/pages/Ranking.tsx b/client/src/pages/Ranking.tsx index d86e64e..3bfb427 100644 --- a/client/src/pages/Ranking.tsx +++ b/client/src/pages/Ranking.tsx @@ -215,13 +215,11 @@ export default function Ranking() { return; } - // Function to get a random voucher from the available vouchers const getRandomVouchers = (count: number): Voucher[] => { const shuffled = vouchers.sort(() => 0.5 - Math.random()); return shuffled.slice(0, count); }; - // Group users by town council const townCouncilGroups: RecordPaper
+Paper
$0.05 to 0.20/KG
-Electronics
+Electronics
$2 to 50/KG
-Clothes
+Clothes
$0.20/KG
-