diff --git a/src/components/Layout/Header.tsx b/src/components/Layout/Header.tsx index 13056e2..c756189 100644 --- a/src/components/Layout/Header.tsx +++ b/src/components/Layout/Header.tsx @@ -2,7 +2,7 @@ import { Box, IconButton, Typography } from '@mui/material'; import { Icon } from '@rkheftan/harmony-ui'; import { More } from 'iconsax-react'; import type { UserInfo } from '@/contexts/AuthContext'; -import { LTRBox } from '../common/LTRBox'; +import { LTRTypography } from '../common/LTRTypography'; interface HeaderProps { user: UserInfo; @@ -21,9 +21,9 @@ export const Header: React.FC = ({ user }) => { > {user.fullName} - - {user.phoneNumber ?? user.email} - + + {user.phoneNumber ?? user.email} + diff --git a/src/components/common/LTRTypography.tsx b/src/components/common/LTRTypography.tsx new file mode 100644 index 0000000..9a6f5c4 --- /dev/null +++ b/src/components/common/LTRTypography.tsx @@ -0,0 +1,6 @@ +import { styled, Typography } from '@mui/material'; + +export const LTRTypography = styled(Typography)` + /* @noflip */ + direction: ltr; +`; diff --git a/src/features/profile/routes/SettingPage.tsx b/src/features/profile/routes/SettingPage.tsx index 32d9c5d..034e1c4 100644 --- a/src/features/profile/routes/SettingPage.tsx +++ b/src/features/profile/routes/SettingPage.tsx @@ -28,8 +28,8 @@ interface SettingsState { } const languageOptions = [ - { code: 'en', label: 'English', apiValue: 1 }, - { code: 'fa', label: 'فارسی', apiValue: 2 }, + { code: 'fa', label: 'فارسی', apiValue: 1 }, + { code: 'en', label: 'English', apiValue: 2 }, ]; const calendarOptions: { key: CalendarType; apiValue: number }[] = [