From a28b21f44eaf622b4e83e9e38c9362f0c87f6d01 Mon Sep 17 00:00:00 2001 From: WindowsCrashed Date: Wed, 9 Aug 2023 12:50:21 -0300 Subject: [PATCH] add button to access new assessment manual --- app/javascript/pages/assessment/NewAssessement.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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