fix: login info inputs paddings, persian number support, country code selector not found message, codes ltr, auto submit after otp paste or enter, removing word "دقیقه" from otp timer

This commit is contained in:
2025-09-21 21:47:45 +03:30
parent a42da2d4c4
commit 718bc3aaa0
8 changed files with 42 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ import { useTranslation } from 'react-i18next';
import { countries, type Country } from '../../../data/countries';
import type { CountryCode } from '@/types/commonTypes';
import { Icon } from '@rkheftan/harmony-ui';
import { LTRBox } from '@/components/common/LTRBox';
interface CountryCodeSelectorProps {
show: boolean;
value: CountryCode;
@@ -187,7 +188,9 @@ export function CountryCodeSelector({
{filteredCountries.length === 0 ? (
<MenuItem disabled>
<ListItem>
<ListItemText>{t('messages.noResualtFound')}</ListItemText>
<ListItemText>
{t('messages.noResualtFound', { ns: 'common' })}
</ListItemText>
</ListItem>
</MenuItem>
) : (
@@ -209,7 +212,9 @@ export function CountryCodeSelector({
</ListItemIcon>
<ListItemText primary={t(country.label, { ns: 'country' })} />
<Typography color="text.secondary">
{country.phone}
<Typography>
<LTRBox>{country.phone}</LTRBox>
</Typography>
</Typography>
</MenuItem>
))