diff options
Diffstat (limited to 'src/pages/NewSurvey')
-rw-r--r-- | src/pages/NewSurvey/index.js | 5 |
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}` }} />; } |