mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-25 11:56:31 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -28,11 +28,7 @@ export const SelectWithInvalidData = ({ data, defaultValue, ...props }: SelectPr
|
||||
<Select
|
||||
data={fullData}
|
||||
defaultValue={defaultValue}
|
||||
error={
|
||||
hasError
|
||||
? t('error.badValue', { postProcess: 'sentenceCase', value: defaultValue })
|
||||
: undefined
|
||||
}
|
||||
error={hasError ? t('error.badValue', { value: defaultValue }) : undefined}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
@@ -74,10 +70,7 @@ export const MultiSelectWithInvalidData = ({
|
||||
}, [data, currentValue]);
|
||||
|
||||
const error = useMemo(
|
||||
() =>
|
||||
missing.length
|
||||
? t('error.badValue', { postProcess: 'sentenceCase', value: missing })
|
||||
: undefined,
|
||||
() => (missing.length ? t('error.badValue', { value: missing }) : undefined),
|
||||
[missing, t],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user