From 3024a8104d71e24714d99c80041c7d9804033dce Mon Sep 17 00:00:00 2001
From: Mav-Ivan <110425368+Mav-Ivan@users.noreply.github.com>
Date: Tue, 19 Sep 2023 11:02:20 +0300
Subject: [PATCH] implement categories route
---
src/constants/translations/en/my-resources-page.json | 3 ++-
src/constants/translations/ua/my-resources-page.json | 3 ++-
.../categories-container/CategoriesContainer.tsx | 11 +++++++++++
src/pages/my-resources/MyResources.constants.tsx | 7 +++++++
4 files changed, 22 insertions(+), 2 deletions(-)
create mode 100644 src/containers/my-resources/categories-container/CategoriesContainer.tsx
diff --git a/src/constants/translations/en/my-resources-page.json b/src/constants/translations/en/my-resources-page.json
index 039a9eee1..78a0f4134 100644
--- a/src/constants/translations/en/my-resources-page.json
+++ b/src/constants/translations/en/my-resources-page.json
@@ -3,7 +3,8 @@
"lessons": "Lessons",
"quizzes": "Quizzes",
"questions": "Questions",
- "attachments": "Attachments"
+ "attachments": "Attachments",
+ "categories": "Categories"
},
"lessons": {
"addBtn": "New lesson",
diff --git a/src/constants/translations/ua/my-resources-page.json b/src/constants/translations/ua/my-resources-page.json
index ef025cbd1..fc7f6848e 100644
--- a/src/constants/translations/ua/my-resources-page.json
+++ b/src/constants/translations/ua/my-resources-page.json
@@ -3,7 +3,8 @@
"lessons": "Уроки",
"tests": "Тести",
"questions": "Запитання",
- "attachments": "Вкладення"
+ "attachments": "Вкладення",
+ "categories": "Категорії"
},
"lessons": {
"addBtn": "Новий урок",
diff --git a/src/containers/my-resources/categories-container/CategoriesContainer.tsx b/src/containers/my-resources/categories-container/CategoriesContainer.tsx
new file mode 100644
index 000000000..688c40942
--- /dev/null
+++ b/src/containers/my-resources/categories-container/CategoriesContainer.tsx
@@ -0,0 +1,11 @@
+import Box from '@mui/material/Box'
+
+const CategoriesContainer = () => {
+ return (
+
+ Categories Page
+
+ )
+}
+
+export default CategoriesContainer
diff --git a/src/pages/my-resources/MyResources.constants.tsx b/src/pages/my-resources/MyResources.constants.tsx
index 8734208d5..d2401672a 100644
--- a/src/pages/my-resources/MyResources.constants.tsx
+++ b/src/pages/my-resources/MyResources.constants.tsx
@@ -4,11 +4,13 @@ import ArticleOutlinedIcon from '@mui/icons-material/ArticleOutlined'
import AttachFileIcon from '@mui/icons-material/AttachFile'
import NoteAltOutlinedIcon from '@mui/icons-material/NoteAltOutlined'
import QuizOutlinedIcon from '@mui/icons-material/QuizOutlined'
+import CategoryIcon from '@mui/icons-material/Category'
import AttachmentsContainer from '~/containers/my-resources/attachments-container/AttachmentsContainer'
import QuizzesContainer from '~/containers/my-quizzes/QuizzesContainer'
import LessonsContainer from '~/containers/my-resources/lessons-container/LessonsContainer'
import QuestionsContainer from '~/containers/my-resources/questions-container/QuestionsContainer'
+import CategoriesContainer from '~/containers/my-resources/categories-container/CategoriesContainer'
interface TabsData {
[key: string]: {
@@ -37,5 +39,10 @@ export const tabsData: TabsData = {
title: 'myResourcesPage.tabs.attachments',
content: ,
icon:
+ },
+ categories: {
+ title: 'myResourcesPage.tabs.categories',
+ content: ,
+ icon:
}
}