diff --git a/src/components/Button.tsx b/src/components/Button.tsx index b000aee..4b01d5d 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -18,8 +18,10 @@ const Button: FC = (props) => { const { label, children, className, loading, variant, type, disabled, ...rest } = props const buttonClass = clx( - 'w-full bg-primary text-primary-foreground cursor-pointer rounded-xl font-normal text-xs md:text-sm h-10 px-3 md:px-4 transition-all duration-200 hover:bg-opacity-90 disabled:opacity-50 disabled:cursor-not-allowed', - variant === 'secondary' && 'bg-[#ECEEF5] text-black', + 'w-full cursor-pointer rounded-xl font-normal text-xs md:text-sm h-10 px-3 md:px-4 transition-all duration-200 hover:bg-opacity-90 disabled:opacity-50 disabled:cursor-not-allowed', + variant === 'secondary' + ? 'bg-secondary text-secondary-foreground' + : 'bg-secondary text-secondary-foreground dark:bg-secondary dark:text-secondary-foreground', className ) diff --git a/src/index.css b/src/index.css index 9c8543c..7da0f39 100644 --- a/src/index.css +++ b/src/index.css @@ -201,7 +201,7 @@ textarea::placeholder { --secondary: #f5f5f5; --secondary-foreground: #000000; --muted: #f5f5f5; - --muted-foreground: #888888; + --muted-foreground: #8c90a3; --accent: #f5f5f5; --accent-foreground: #000000; --destructive: #ef4444; diff --git a/src/pages/auth/Login.tsx b/src/pages/auth/Login.tsx index 393aa66..f589ba8 100644 --- a/src/pages/auth/Login.tsx +++ b/src/pages/auth/Login.tsx @@ -132,7 +132,7 @@ const Login: FC = () => { -
+
diff --git a/src/shared/Header.tsx b/src/shared/Header.tsx index 4b46077..e961cf2 100644 --- a/src/shared/Header.tsx +++ b/src/shared/Header.tsx @@ -274,7 +274,10 @@ const Header: FC = () => { actions={[ { label: 'راهنما', - onClick: () => window.location.href = import.meta.env.VITE_HELP_URL + `/${import.meta.env.VITE_SERVICE_ID}`, + onClick: () => window.open( + import.meta.env.VITE_HELP_URL + `/${import.meta.env.VITE_SERVICE_ID}`, + '_blank' + ), }, { label: 'گزارش اشکالات', diff --git a/src/shared/Main.tsx b/src/shared/Main.tsx index 93f344e..576c114 100644 --- a/src/shared/Main.tsx +++ b/src/shared/Main.tsx @@ -6,6 +6,7 @@ import Button from '@/components/Button' import { Add } from 'iconsax-react' import { useTranslation } from 'react-i18next' import { useSharedStore } from './store/sharedStore' +import { getIconColor } from '@/utils/colorUtils' const Main: FC = () => { @@ -33,7 +34,7 @@ const Main: FC = () => { }} >
- +
{t('sidebar.new_message')}
diff --git a/src/shared/SideBar.tsx b/src/shared/SideBar.tsx index 9821964..e6bd6cc 100644 --- a/src/shared/SideBar.tsx +++ b/src/shared/SideBar.tsx @@ -67,9 +67,9 @@ const SideBar: FC = () => { {t('sidebar.menu')} -
+
} + icon={} title={t('sidebar.received')} isActive={isActive(Paths.received)} link={Paths.received} @@ -77,14 +77,14 @@ const SideBar: FC = () => { /> } + icon={} title={t('sidebar.sent')} isActive={isActive(Paths.sent)} link={Paths.sent} /> } + icon={} title={t('sidebar.draft')} isActive={isActive(Paths.draft)} link={Paths.draft} @@ -92,14 +92,14 @@ const SideBar: FC = () => { /> } + icon={} title={t('sidebar.archive')} isActive={isActive(Paths.archive)} link={Paths.archive} /> } + icon={} title={t('sidebar.trash')} isActive={isActive(Paths.trash)} link={Paths.trash} @@ -112,14 +112,14 @@ const SideBar: FC = () => {
} + icon={} title={t('sidebar.favorite')} isActive={isActive(Paths.favorite)} link={Paths.favorite} /> } + icon={} title={t('sidebar.spam')} isActive={isActive(Paths.spam)} link={Paths.spam} @@ -130,13 +130,13 @@ const SideBar: FC = () => {
} + icon={} title={t('sidebar.settings')} isActive={isActive(Paths.setting)} link={Paths.setting} /> } + icon={} title={t('sidebar.logout')} isActive={isActive('logout')} link={`#`} diff --git a/src/shared/SideBarItem.tsx b/src/shared/SideBarItem.tsx index 104cf85..5efd0f6 100644 --- a/src/shared/SideBarItem.tsx +++ b/src/shared/SideBarItem.tsx @@ -34,7 +34,7 @@ const SideBarItem: FC = (props: Props) => { }
{props.icon} -
+
{props.title}