Skip to content

Commit

Permalink
implement categories route
Browse files Browse the repository at this point in the history
  • Loading branch information
Mav-Ivan committed Sep 19, 2023
1 parent 88c59e3 commit 3024a81
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/constants/translations/en/my-resources-page.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"lessons": "Lessons",
"quizzes": "Quizzes",
"questions": "Questions",
"attachments": "Attachments"
"attachments": "Attachments",
"categories": "Categories"
},
"lessons": {
"addBtn": "New lesson",
Expand Down
3 changes: 2 additions & 1 deletion src/constants/translations/ua/my-resources-page.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"lessons": "Уроки",
"tests": "Тести",
"questions": "Запитання",
"attachments": "Вкладення"
"attachments": "Вкладення",
"categories": "Категорії"
},
"lessons": {
"addBtn": "Новий урок",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Box from '@mui/material/Box'

const CategoriesContainer = () => {
return (
<Box>
<h3>Categories Page</h3>
</Box>
)
}

export default CategoriesContainer
7 changes: 7 additions & 0 deletions src/pages/my-resources/MyResources.constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]: {
Expand Down Expand Up @@ -37,5 +39,10 @@ export const tabsData: TabsData = {
title: 'myResourcesPage.tabs.attachments',
content: <AttachmentsContainer />,
icon: <AttachFileIcon />
},
categories: {
title: 'myResourcesPage.tabs.categories',
content: <CategoriesContainer />,
icon: <CategoryIcon />
}
}

0 comments on commit 3024a81

Please sign in to comment.