Limit logo upload to either SVG or PNG

This commit is contained in:
crockwave
2020-08-02 14:07:13 -05:00
parent ba18c3a643
commit 1f6ca55366
2 changed files with 10 additions and 1 deletions

View File

@ -222,3 +222,11 @@ export const FileChooser = props => (
FileChooser.defaultProps = {
accept: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'],
};
export const FileChooserLogo = props => (
<SimpleInput type='file' {...props} />
);
FileChooserLogo.defaultProps = {
accept: ['image/svg', 'image/png'],
};