@@ -26,6 +30,11 @@ const TempHomepage = () => {
Sign up
+
+
+
Projects
diff --git a/frontend/src/pages/account/SignupPage.tsx b/frontend/src/pages/account/SignupPage.tsx
index 8e4f1f5..c0d9456 100644
--- a/frontend/src/pages/account/SignupPage.tsx
+++ b/frontend/src/pages/account/SignupPage.tsx
@@ -2,6 +2,8 @@ import { useState } from "react";
import SignupSideBar from "../../components/account/SignupSideBar";
import SignupMainSection from "../../components/account/SignupMainSection";
import { SIGNUP_STEP } from "../../constants/account";
+import { useLocation } from "react-router-dom";
+import { ERROR_MESSAGE } from "../../constants/error";
const SignupPage = () => {
const [currentStep, setCurrentStep] = useState<{
@@ -9,16 +11,15 @@ const SignupPage = () => {
NAME: string;
}>(SIGNUP_STEP.STEP1);
+ const location = useLocation();
+ if (location.state ? false : true) {
+ throw Error(ERROR_MESSAGE.NOT_PERMITTED);
+ }
+
return (
-
-
+
+
);
};
diff --git a/frontend/src/pages/error/NotPermittedPage.tsx b/frontend/src/pages/error/NotPermittedPage.tsx
new file mode 100644
index 0000000..3b311e2
--- /dev/null
+++ b/frontend/src/pages/error/NotPermittedPage.tsx
@@ -0,0 +1,22 @@
+import { FallbackProps } from "react-error-boundary";
+import { useNavigate } from "react-router-dom";
+import { ROUTER_URL } from "../../constants/path";
+
+const NotPermittedPage = ({ error, resetErrorBoundary }: FallbackProps) => {
+ const navigate = useNavigate();
+ const redirectTempPage = () => {
+ resetErrorBoundary();
+ navigate(ROUTER_URL.TEMP);
+ };
+ return (
+
+
Error 발생
+
error : {error.message}
+
+
+ );
+};
+
+export default NotPermittedPage;