add assessment home
This commit is contained in:
9
app/javascript/pages/assessment/Assessment.tsx
Normal file
9
app/javascript/pages/assessment/Assessment.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react'
|
||||
|
||||
export const Assessment = () => {
|
||||
return (
|
||||
<div>
|
||||
<h1>Assessment</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
1
app/javascript/pages/assessment/index.ts
Normal file
1
app/javascript/pages/assessment/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './Assessment'
|
||||
@@ -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 }>()
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user