Add Russian to language dropdown (#2671)

This commit is contained in:
Jaco Greeff 2020-05-01 20:34:35 +02:00 committed by GitHub
parent 1dfcd101f1
commit e321d43032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -17,6 +17,10 @@ export default function create (t: (key: string, text: string, options: { ns: st
{
text: '汉语',
value: 'zh'
},
{
text: 'русский',
value: 'ru'
}
// For ja, we only have the settings page, remove until comprehensive
// , {

View File

@ -14,11 +14,10 @@ function Balance ({ className, defaultValue: { value }, isDisabled, isError, lab
const [defaultValue] = useState(new BN((value as BN || '0').toString()).toString(10));
const _onChange = useCallback(
(value?: BN): void =>
onChange && onChange({
isValid: !isError && !!value,
value
}),
(value?: BN) => onChange && onChange({
isValid: !isError && !!value,
value
}),
[isError, onChange]
);