Color and I18n support
This commit is contained in:
parent
523f537aa4
commit
ba82c13fe1
19 changed files with 630 additions and 303 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
Input, InputGroup, InputLeftElement, Icon,
|
||||
} from '@chakra-ui/react';
|
||||
import { FiFile } from 'react-icons/fi';
|
||||
import { Manage as i18n } from '../../../global/i18n';
|
||||
|
||||
export const FileUpload = ({
|
||||
name,
|
||||
|
|
@ -39,7 +40,8 @@ export const FileUpload = ({
|
|||
placeholder={placeholder || 'Your file ...'}
|
||||
onClick={() => inputRef.current.click()}
|
||||
readOnly
|
||||
value={`${files.length || 'No'} ${files.length === 1 ? 'File' : 'Files'} Selected`}
|
||||
background="blue.300"
|
||||
value={i18n.create.fileUpload(files.length)}
|
||||
/>
|
||||
</InputGroup>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue