add assessment home

This commit is contained in:
2022-10-17 09:50:24 -03:00
parent 4bc00301b4
commit 6732308631
11 changed files with 30 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
import React from 'react'
export const Assessment = () => {
return (
<div>
<h1>Assessment</h1>
</div>
)
}

View File

@@ -0,0 +1 @@
export * from './Assessment'

View File

@@ -32,7 +32,7 @@ const UPDATE_QUESTION_MUTATOIN = gql`
}
`
export const Edit: FC = () => {
export const Edit = () => {
const history = useHistory()
const [alert, setAlert] = useState<AlertV2Props>()
const params = useParams<{ id: string }>()

View File

@@ -6,7 +6,7 @@ import { QuestionsFilter } from "./QuestionFilter";
import { QuestionsPainel } from "./QuestionsPainel";
import { FiltersProvider } from './QuestionFilter/QuestionsFilterProvider'
export const List: FC = () => {
export const List = () => {
const [filterOpen, setFilterOpen] = useState(false);
return (

View File

@@ -21,7 +21,7 @@ export const GET_QUESTION = gql`
}
`
export const Review: FC = () => {
export const Review = () => {
const { id } = useParams<{ id: string }>()
const { loading, data, refetch } = useQuery<Query>(GET_QUESTION, {
variables: {

View File

@@ -54,7 +54,7 @@ const DESTROY_QUESTION = gql`
}
`
export const Show: FC = () => {
export const Show = () => {
const history = useHistory();
const {id} = useParams<{ id: string }>();
const [confirmRegister, setConfirmRegister] = useState(false)