Auth: Polish UI, fix exception
This commit is contained in:
parent
e81475c21a
commit
233979405a
@ -109,7 +109,7 @@ const AuthCode: FC<StateProps> = ({
|
|||||||
onInput={onCodeChange}
|
onInput={onCodeChange}
|
||||||
value={code}
|
value={code}
|
||||||
error={authError && lang(authError)}
|
error={authError && lang(authError)}
|
||||||
autoComplete="one-time-code"
|
autoComplete="off"
|
||||||
inputMode="numeric"
|
inputMode="numeric"
|
||||||
/>
|
/>
|
||||||
{authIsLoading && <Loading />}
|
{authIsLoading && <Loading />}
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
.country-flag {
|
.country-flag {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
margin-right: 2rem;
|
margin-right: 1rem;
|
||||||
|
|
||||||
.emoji {
|
.emoji {
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
@ -85,5 +85,6 @@
|
|||||||
.country-code {
|
.country-code {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
padding-right: 0.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -136,13 +136,13 @@ const CountryCodeInput: FC<OwnProps & StateProps> = ({
|
|||||||
{filteredList
|
{filteredList
|
||||||
.map((country: ApiCountryCode) => (
|
.map((country: ApiCountryCode) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
key={country.iso2}
|
key={`${country.iso2}-${country.countryCode}`}
|
||||||
className={value && country.iso2 === value.iso2 ? 'selected' : ''}
|
className={value && country.iso2 === value.iso2 ? 'selected' : ''}
|
||||||
onClick={() => handleChange(country)}
|
onClick={() => handleChange(country)}
|
||||||
>
|
>
|
||||||
<span className="country-flag">{renderText(isoToEmoji(country.iso2), ['hq_emoji'])}</span>
|
<span className="country-flag">{renderText(isoToEmoji(country.iso2), ['hq_emoji'])}</span>
|
||||||
<span className="country-name">{country.name || country.defaultName}</span>
|
<span className="country-name">{country.name || country.defaultName}</span>
|
||||||
<span className="country-code">{country.countryCode}</span>
|
<span className="country-code">+{country.countryCode}</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
))}
|
))}
|
||||||
{!filteredList.length && (
|
{!filteredList.length && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user