Skip to content

Commit

Permalink
feat: call useGetEvaluations
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSlain committed Dec 3, 2024
1 parent 00edcf4 commit 515f833
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pages/Evaluations.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { chatUrl, streamUrl } from '@api'
import { chatUrl, streamUrl, useGetEvaluationQuestions } from '@api'
import { Notice } from '@codegouvfr/react-dsfr/Notice'
import StarIcon from '@mui/icons-material/Star'
import Box from '@mui/material/Box'
Expand All @@ -9,6 +9,8 @@ import { TextWithSources } from 'components/Sources/TextWithSources'
import { EventSourcePolyfill } from 'event-source-polyfill'
import { useCallback, useEffect, useRef, useState } from 'react'
import { onCloseStream } from '../utils/eventsEmitter'
import ShowError from 'components/Error/ShowError'
import { Skeleton } from '@mui/material'

const questions = [
{
Expand Down Expand Up @@ -70,7 +72,13 @@ export default function Evaluations() {
}

function Questions({ setSelectedCardIndex }) {
// const questionList =
// const { data: questionList, error, isLoading } = useGetEvaluationQuestions()
// if (error) {
// console.error(error)
// //@ts-expect-error
// return <ShowError message={error.message} errorNumber={error.status} />
// }

return (
<div className="grid grid-cols-2 gap-4">
{questions.map((question, index) => (
Expand Down

0 comments on commit 515f833

Please sign in to comment.