catalog add sidebar
This commit is contained in:
@@ -2,4 +2,7 @@ export const Paths = {
|
|||||||
home: "/",
|
home: "/",
|
||||||
editor: "/editor",
|
editor: "/editor",
|
||||||
viewer: "/viewer",
|
viewer: "/viewer",
|
||||||
|
catalog: {
|
||||||
|
list: "/catalogue",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"sidebar": {
|
"sidebar": {
|
||||||
"menu": "منو",
|
"menu": "منو",
|
||||||
"home_page": "صفحه اصلی"
|
"home_page": "صفحه اصلی",
|
||||||
|
"catalog": "کاتالوگ"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "جستجو"
|
"search": "جستجو"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import LogoImage from '../assets/images/logo.svg'
|
|||||||
import LogoSmall from '../assets/images/logo-small.svg'
|
import LogoSmall from '../assets/images/logo-small.svg'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import {
|
import {
|
||||||
|
DocumentText,
|
||||||
Home2,
|
Home2,
|
||||||
Logout,
|
Logout,
|
||||||
} from 'iconsax-react'
|
} from 'iconsax-react'
|
||||||
@@ -74,6 +75,14 @@ const SideBar: FC = () => {
|
|||||||
link={Paths.home}
|
link={Paths.home}
|
||||||
activeName={Paths.home}
|
activeName={Paths.home}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<SideBarItem
|
||||||
|
icon={<DocumentText variant={isActive(Paths.catalog.list) ? 'Bold' : 'Outline'} color={isActive(Paths.catalog.list) ? 'black' : '#8C90A3'} size={iconSizeSideBar} />}
|
||||||
|
title={t('sidebar.catalog')}
|
||||||
|
isActive={isActive(Paths.catalog.list)}
|
||||||
|
link={Paths.catalog.list}
|
||||||
|
activeName={Paths.catalog.list}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='flex-1 flex flex-col justify-end mt-14'>
|
<div className='flex-1 flex flex-col justify-end mt-14'>
|
||||||
|
|||||||
Reference in New Issue
Block a user