From 000a2452f86efb9b2da495f4c393245e54d9a9e7 Mon Sep 17 00:00:00 2001 From: Vitalii Stasiuk <75339353+mynotdoing@users.noreply.github.com> Date: Tue, 21 Nov 2023 05:26:06 +0200 Subject: [PATCH] changed service --- .../CreateOrEditQuizContainer.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/containers/my-quizzes/create-or-edit-quiz-container/CreateOrEditQuizContainer.tsx b/src/containers/my-quizzes/create-or-edit-quiz-container/CreateOrEditQuizContainer.tsx index 3199418df5..ebcef572b5 100644 --- a/src/containers/my-quizzes/create-or-edit-quiz-container/CreateOrEditQuizContainer.tsx +++ b/src/containers/my-quizzes/create-or-edit-quiz-container/CreateOrEditQuizContainer.tsx @@ -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' @@ -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, @@ -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'),