diff --git a/src/constants/translations/en/breadcrumbs.json b/src/constants/translations/en/breadcrumbs.json
index 8f8916e46..87b5cce9d 100644
--- a/src/constants/translations/en/breadcrumbs.json
+++ b/src/constants/translations/en/breadcrumbs.json
@@ -15,5 +15,6 @@
"myOffers": "My offers",
"editLesson": "Edit lesson",
"lessonDetails": "Lesson details",
- "newQuiz": "New quiz"
+ "newQuiz": "New quiz",
+ "newQuestion": "New question"
}
diff --git a/src/constants/translations/ua/breadcrumbs.json b/src/constants/translations/ua/breadcrumbs.json
index 092c31f21..f56cee423 100644
--- a/src/constants/translations/ua/breadcrumbs.json
+++ b/src/constants/translations/ua/breadcrumbs.json
@@ -15,5 +15,6 @@
"myOffers": "Мої пропозиції",
"editLesson": "Редагування уроку",
"lessonDetails": "Деталі уроку",
- "newQuiz": "Новий тест"
+ "newQuiz": "Новий тест",
+ "newQuestion": "Нове питання"
}
diff --git a/src/containers/my-quizzes/QuizzesContainer.tsx b/src/containers/my-quizzes/QuizzesContainer.tsx
index f1a12444e..2c2cd850b 100644
--- a/src/containers/my-quizzes/QuizzesContainer.tsx
+++ b/src/containers/my-quizzes/QuizzesContainer.tsx
@@ -10,6 +10,7 @@ import useSort from '~/hooks/table/use-sort'
import useBreakpoints from '~/hooks/use-breakpoints'
import useAxios from '~/hooks/use-axios'
import usePagination from '~/hooks/table/use-pagination'
+import { authRoutes } from '~/router/constants/authRoutes'
import { defaultResponses, snackbarVariants } from '~/constants'
import {
@@ -94,7 +95,7 @@ const QuizzesContainer = () => {
{loading ? (
diff --git a/src/containers/my-resources/questions-container/QuestionsContainer.tsx b/src/containers/my-resources/questions-container/QuestionsContainer.tsx
index d7a4127cd..e7a316709 100644
--- a/src/containers/my-resources/questions-container/QuestionsContainer.tsx
+++ b/src/containers/my-resources/questions-container/QuestionsContainer.tsx
@@ -9,6 +9,7 @@ import Loader from '~/components/loader/Loader'
import useSort from '~/hooks/table/use-sort'
import useBreakpoints from '~/hooks/use-breakpoints'
import useAxios from '~/hooks/use-axios'
+import { authRoutes } from '~/router/constants/authRoutes'
import { defaultResponses, snackbarVariants } from '~/constants'
import {
@@ -85,7 +86,7 @@ const QuestionsContainer = () => {
{loading ? (
diff --git a/src/pages/create-or-edit-question/CreateOrEditQuestion.tsx b/src/pages/create-or-edit-question/CreateOrEditQuestion.tsx
new file mode 100644
index 000000000..3e6b5de4a
--- /dev/null
+++ b/src/pages/create-or-edit-question/CreateOrEditQuestion.tsx
@@ -0,0 +1,11 @@
+import PageWrapper from '~/components/page-wrapper/PageWrapper'
+
+const CreateOrEditQuestion = () => {
+ return (
+
+ CreateOrEditQuestion
+
+ )
+}
+
+export default CreateOrEditQuestion
diff --git a/src/router/constants/authRoutes.ts b/src/router/constants/authRoutes.ts
index 7f3939aa2..63ffdb00a 100644
--- a/src/router/constants/authRoutes.ts
+++ b/src/router/constants/authRoutes.ts
@@ -21,6 +21,10 @@ export const authRoutes = {
newQuiz: {
route: 'my-resources/new-quiz',
path: '/my-resources/new-quiz'
+ },
+ newQuestion: {
+ route: 'my-resources/new-question',
+ path: '/my-resources/new-question'
}
},
lessonDetails: { route: 'lesson-details/:id', path: '/lesson-details' },
diff --git a/src/router/constants/crumbs.ts b/src/router/constants/crumbs.ts
index 12a3d52fc..c47f68734 100644
--- a/src/router/constants/crumbs.ts
+++ b/src/router/constants/crumbs.ts
@@ -86,3 +86,8 @@ export const chat = {
name: t('breadCrumbs.chat'),
path: authRoutes.chat.route
}
+
+export const newQuestion = {
+ name: t('breadCrumbs.newQuestion'),
+ path: authRoutes.myResources.newQuestion.route
+}
diff --git a/src/router/routes/authRouter.tsx b/src/router/routes/authRouter.tsx
index f0c45912a..c76157751 100644
--- a/src/router/routes/authRouter.tsx
+++ b/src/router/routes/authRouter.tsx
@@ -17,7 +17,8 @@ import {
offerDetails,
subjects,
userProfile,
- newQuiz
+ newQuiz,
+ newQuestion
} from '~/router/constants/crumbs'
import PrivateRoute from '~/router/helpers/PrivateRoute'
import { UserRoleEnum } from '~/types'
@@ -40,6 +41,9 @@ const CreateOrEditLesson = lazy(
)
const LessonDetails = lazy(() => import('~/pages/lesson-details/LessonDetails'))
const NewQuiz = lazy(() => import('~/pages/new-quiz/NewQuiz'))
+const CreateOrEditQuestion = lazy(
+ () => import('~/pages/create-or-edit-question/CreateOrEditQuestion')
+)
export const authRouter = (
+ }
+ handle={{ crumb: [myResources, newQuestion] }}
+ path={authRoutes.myResources.newQuestion.route}
+ />
)