aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/NewSurvey
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/NewSurvey')
-rw-r--r--src/pages/NewSurvey/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/NewSurvey/index.js b/src/pages/NewSurvey/index.js
index f1d4b89..335eb93 100644
--- a/src/pages/NewSurvey/index.js
+++ b/src/pages/NewSurvey/index.js
@@ -1,4 +1,5 @@
-import FormBuilder from "../../components/FormBuilder";
+import { Navigate } from "react-router-dom";
export default function NewSurvey() {
- return <FormBuilder />;
+ const id = crypto.randomUUID();
+ return <Navigate to={{ pathname: `/surveys/${id}` }} />;
}