Skip to content

Commit

Permalink
changed service
Browse files Browse the repository at this point in the history
  • Loading branch information
mynotdoing committed Nov 21, 2023
1 parent 5e7f640 commit 000a245
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ChangeEvent, useCallback, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { Link, useNavigate } from 'react-router-dom'

import Box from '@mui/material/Box'
import Divider from '@mui/material/Divider'
import EditIcon from '@mui/icons-material/Edit'
Expand All @@ -16,14 +15,12 @@ import AddResources from '~/containers/add-resources/AddResources'
import CreateOrEditQuizQuestion from '~/containers/my-quizzes/create-or-edit-quiz-question/CreateOrEditQuizQuestion'
import AppButton from '~/components/app-button/AppButton'
import AppTextField from '~/components/app-text-field/AppTextField'
import { categoryService } from '~/services/category-service'
import AsyncAutocomplete from '~/components/async-autocomlete/AsyncAutocomplete'
import PageWrapper from '~/components/page-wrapper/PageWrapper'

import { snackbarVariants } from '~/constants'
import { authRoutes } from '~/router/constants/authRoutes'
import { myResourcesPath } from '~/pages/create-or-edit-lesson/CreateOrEditLesson.constants'

import { QuizContentProps } from '~/pages/new-quiz/NewQuiz.constants'
import {
columns,
Expand Down Expand Up @@ -155,7 +152,7 @@ const CreateOrEditQuizContainer = ({
fetchOnFocus
labelField='name'
onChange={onCategoryChange}
service={categoryService.getCategoriesNames}
service={ResourceService.getResourcesCategoriesNames}
sx={styles.categoryInput}
textFieldProps={{
label: t('common.categoryDropdown'),
Expand Down

0 comments on commit 000a245

Please sign in to comment.