diff --git a/src/App.tsx b/src/App.tsx index 853a2c8..f76d272 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,7 +19,7 @@ function App() { -
+ {/*
{t('helloWorld')} -
+
*/} ); } export default App; -import { Button } from '@mui/material'; +// import { Button } from '@mui/material'; -export const ThemeToggleButton = () => { - const { mode, setMode } = useColorScheme(); +// export const ThemeToggleButton = () => { +// const { mode, setMode } = useColorScheme(); - return ( - - ); -}; +// return ( +// +// ); +// }; diff --git a/src/components/Countries.tsx b/src/components/Countries.tsx new file mode 100644 index 0000000..ee4f74a --- /dev/null +++ b/src/components/Countries.tsx @@ -0,0 +1,40 @@ +// components/Countries.ts + +export interface Country { + name: string; + fa: string; + flag: string; +} + +export const countries: Country[] = [ + { name: 'Afghanistan', fa: 'افغانستان', flag: 'af' }, + { name: 'Albania', fa: 'آلبانی', flag: 'al' }, + { name: 'Algeria', fa: 'الجزایر', flag: 'dz' }, + { name: 'Argentina', fa: 'آرژانتین', flag: 'ar' }, + { name: 'Armenia', fa: 'ارمنستان', flag: 'am' }, + { name: 'Australia', fa: 'استرالیا', flag: 'au' }, + { name: 'Austria', fa: 'اتریش', flag: 'at' }, + { name: 'Bahrain', fa: 'بحرین', flag: 'bh' }, + { name: 'Canada', fa: 'کانادا', flag: 'ca' }, + { name: 'China', fa: 'چین', flag: 'cn' }, + { name: 'France', fa: 'فرانسه', flag: 'fr' }, + { name: 'Germany', fa: 'آلمان', flag: 'de' }, + { name: 'India', fa: 'هند', flag: 'in' }, + { name: 'Iran', fa: 'ایران', flag: 'ir' }, + { name: 'Iraq', fa: 'عراق', flag: 'iq' }, + { name: 'Italy', fa: 'ایتالیا', flag: 'it' }, + { name: 'Japan', fa: 'ژاپن', flag: 'jp' }, + { name: 'Netherlands', fa: 'هلند', flag: 'nl' }, + { name: 'Pakistan', fa: 'پاکستان', flag: 'pk' }, + { name: 'Qatar', fa: 'قطر', flag: 'qa' }, + { name: 'Russia', fa: 'روسیه', flag: 'ru' }, + { name: 'Saudi Arabia', fa: 'عربستان سعودی', flag: 'sa' }, + { name: 'Spain', fa: 'اسپانیا', flag: 'es' }, + { name: 'Sweden', fa: 'سوئد', flag: 'se' }, + { name: 'Switzerland', fa: 'سوئیس', flag: 'ch' }, + { name: 'Turkey', fa: 'ترکیه', flag: 'tr' }, + { name: 'United Arab Emirates', fa: 'امارات متحده عربی', flag: 'ae' }, + { name: 'United Kingdom', fa: 'بریتانیا', flag: 'gb' }, + { name: 'United States', fa: 'ایالات متحده آمریکا', flag: 'us' }, + { name: 'Yemen', fa: 'یمن', flag: 'ye' }, +]; diff --git a/src/features/profile/components/personlInformation/InfoRowDisplay.tsx b/src/features/profile/components/personlInformation/InfoRowDisplay.tsx index 7ab268b..d581865 100644 --- a/src/features/profile/components/personlInformation/InfoRowDisplay.tsx +++ b/src/features/profile/components/personlInformation/InfoRowDisplay.tsx @@ -13,32 +13,24 @@ export function InfoRowDisplay({ initials: string; }) { const { t } = useTranslation('profileSetting'); - const displayValue = (value: string) => value?.trim() || t('settingForm.notDetermined'); return ( - <> + - + {t('settingForm.country')} @@ -75,7 +67,8 @@ export function InfoRowDisplay({ flexDirection: { xs: 'column', sm: 'row' }, flexWrap: 'wrap', gap: 2, - px: 6, + mt: 2, + width: '690px', }} > - + ); }