diff --git a/.env b/.env index 3c7d2df..c09abcb 100644 --- a/.env +++ b/.env @@ -6,4 +6,6 @@ VITE_BASE_URL = 'https://dmail-api.danakcorp.com' VITE_SERVICE_ID = 'e51afdc3-ea0b-49cf-8f49-2a6f131b024e' VITE_LOGIN_URL = 'https://console.danakcorp.com/auth/login' -VITE_CONSOLE_URL = 'https://console.danakcorp.com' \ No newline at end of file +VITE_CONSOLE_URL = 'https://console.danakcorp.com' + +VITE_WORKSPACE_ID = 'workspace_id' \ No newline at end of file diff --git a/src/langs/fa.json b/src/langs/fa.json index d2def80..ef1ccc0 100644 --- a/src/langs/fa.json +++ b/src/langs/fa.json @@ -159,7 +159,8 @@ "add_social": "اضافه کردن شبکه اجتماعی", "update_social": "بروزرسانی شبکه اجتماعی", "delete": "حذف", - "preview": "پیش نمایش" + "preview": "پیش نمایش", + "dashboard": "میزکار" }, "save": "ذخیره", "export_html": "خروجی HTML", diff --git a/src/shared/SideBar.tsx b/src/shared/SideBar.tsx index 8ef8fae..8e25b7d 100644 --- a/src/shared/SideBar.tsx +++ b/src/shared/SideBar.tsx @@ -1,6 +1,6 @@ import { FC } from 'react' import LogoImage from '../assets/images/logo.svg' -import { Brush2, Global, Logout, PenClose, People, Setting3 } from 'iconsax-react' +import { Brush2, Element3, Global, Logout, PenClose, People, Setting3 } from 'iconsax-react' import SideBarItem from './SideBarItem' import { useLocation } from 'react-router-dom' import { useSharedStore } from './store/sharedStore' @@ -23,7 +23,7 @@ const SideBar: FC = () => { const iconSizeSideBar = 20 const handleItemClick = (link: string, isLogout?: boolean) => (e: React.MouseEvent) => { - if (!isDomainActive && link !== Paths.settingDomain && !isLogout) { + if ((!isDomainActive && link !== Paths.settingDomain && !isLogout) && (link !== Paths.home)) { e.preventDefault() toast('ابتدا باید یک دامنه تایید شده داشته باشید', 'error') return @@ -52,6 +52,13 @@ const SideBar: FC = () => {
+ } + title={t('setting.dashboard')} + isActive={isActive(Paths.home)} + link={Paths.home} + onClick={handleItemClick(Paths.home)} + /> } title={t('setting.mail_server')}