add button to access new assessment manual
This commit is contained in:
@@ -5,6 +5,7 @@ import { Controller, useForm } from "react-hook-form";
|
|||||||
|
|
||||||
import { Axis, Query } from "../../__generated__/graphql-schema";
|
import { Axis, Query } from "../../__generated__/graphql-schema";
|
||||||
import { Button, Card, Input, Navigator } from '../../components';
|
import { Button, Card, Input, Navigator } from '../../components';
|
||||||
|
import { useHistory } from "react-router";
|
||||||
|
|
||||||
type NewAssessementForm = {
|
type NewAssessementForm = {
|
||||||
axisWeights: Record<string, any>
|
axisWeights: Record<string, any>
|
||||||
@@ -47,6 +48,8 @@ export const NewAssessement = () => {
|
|||||||
const notSelectedAxis: Axis[] = axes.filter((axis) => !subjectsIds.includes(axis.id))
|
const notSelectedAxis: Axis[] = axes.filter((axis) => !subjectsIds.includes(axis.id))
|
||||||
const selectedAxis: Axis[] = axes.filter((axis) => subjectsIds.includes(axis.id))
|
const selectedAxis: Axis[] = axes.filter((axis) => subjectsIds.includes(axis.id))
|
||||||
|
|
||||||
|
const navigate = useHistory()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Navigator home />
|
<Navigator home />
|
||||||
@@ -179,9 +182,14 @@ export const NewAssessement = () => {
|
|||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
<Button type="primary" className="ml-auto mr-6 mt-6">
|
<div className="flex justify-end mr-6 gap-4">
|
||||||
Gerar
|
<Button type="primary" className="mt-6">
|
||||||
</Button>
|
Gerar Automaticamente
|
||||||
|
</Button>
|
||||||
|
<Button type="primary" className="mt-6" onClick={() => navigate.push('new-manual')}>
|
||||||
|
Gerar Manualmente
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user