+ If you wish to recover the account, please{" "}
+ {
+ window.location.href = "mailto:support@ecoconnect.gov.sg";
+ }}
+ >
+ contact us
+
+
+
+
+
+
+
+
+
+
+
+
+
Why am I seeing this?
+
+
+ You have attempted to access an account that has been marked as
+ inactive.
+
+
+ This may due to, either manual operation by the owner of the
+ account, or administrative decision from the management team.
+
+
+ The information related to this account remains, however the access
+ to the account will not be available.
+
+
+ If you believe that this is incorrect, or would like to request a
+ re-activation, please{" "}
+ {
+ window.location.href = "mailto:support@ecoconnect.gov.sg";
+ }}
+ >
+ contact us
+
+ .
+
+
+
+
+ );
+}
diff --git a/client/src/pages/SpringboardPage.tsx b/client/src/pages/SpringboardPage.tsx
index 349f3a8..b361706 100644
--- a/client/src/pages/SpringboardPage.tsx
+++ b/client/src/pages/SpringboardPage.tsx
@@ -1,7 +1,7 @@
import { useNavigate } from "react-router-dom";
import { useEffect, useState } from "react";
import { Button, Card, Link } from "@nextui-org/react";
-import { LockClosedIcon, PencilSquareIcon } from "../icons";
+import { PencilSquareIcon } from "../icons";
import SpringboardButton from "../components/SpringboardButton";
import { getTimeOfDay } from "../utilities";
import { retrieveUserInformation } from "../security/users";
@@ -16,7 +16,6 @@ export default function SpringboardPage() {
navigate("/signin");
}
const [userInformation, setUserInformation] = useState();
- const [accountUnavailable, setAccountUnavaliable] = useState(false);
const [events, setEvents] = useState([]);
let timeOfDay = getTimeOfDay();
@@ -38,7 +37,7 @@ export default function SpringboardPage() {
setUserInformation(response);
})
.catch((_) => {
- setAccountUnavaliable(true);
+ navigate("/account-inaccessible");
});
instance.get("/events").then((response) => {
@@ -170,69 +169,6 @@ export default function SpringboardPage() {
)}
-
- {accountUnavailable && (
-
-
-
-
-
-
-
-
-
-
-
-
Account unavailable.
-
- This account has been archived.
-
-
-
- If you wish to recover the account, please{" "}
-
- contact us
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Why am I seeing this?
-
-
- You have attempted to access an account that has been
- archived.
-
-
- This may due to, either manual operation by the owner of the
- account, or administrative decision from the management
- team.
-
-
- The information related to this account remains, however the
- access to the account will not be available.
-
-
- If you believe that this is incorrect, or would like to
- request an unarchive, please contact us.
-