diff --git a/app/javascript/pages/assessment/NewAssessement.tsx b/app/javascript/pages/assessment/NewAssessement.tsx index 47fccbf..ba58ec8 100644 --- a/app/javascript/pages/assessment/NewAssessement.tsx +++ b/app/javascript/pages/assessment/NewAssessement.tsx @@ -5,6 +5,7 @@ import { Controller, useForm } from "react-hook-form"; import { Axis, Query } from "../../__generated__/graphql-schema"; import { Button, Card, Input, Navigator } from '../../components'; +import { useHistory } from "react-router"; type NewAssessementForm = { axisWeights: Record @@ -47,6 +48,8 @@ export const NewAssessement = () => { const notSelectedAxis: Axis[] = axes.filter((axis) => !subjectsIds.includes(axis.id)) const selectedAxis: Axis[] = axes.filter((axis) => subjectsIds.includes(axis.id)) + const navigate = useHistory() + return ( <> @@ -179,9 +182,14 @@ export const NewAssessement = () => { - +
+ + +
) } \ No newline at end of file