mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
upload button plus
This commit is contained in:
parent
adfa668f15
commit
ec964ceea4
2 changed files with 15 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import React, { FC, ChangeEventHandler } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
import { Icon } from '~/components/input/Icon';
|
||||
|
||||
interface IProps {
|
||||
onUpload?: ChangeEventHandler<HTMLInputElement>;
|
||||
|
@ -10,6 +11,9 @@ const ImageUploadButton: FC<IProps> = ({
|
|||
}) => (
|
||||
<div className={styles.wrap}>
|
||||
<input type="file" onChange={onUpload} />
|
||||
<div className={styles.icon}>
|
||||
<Icon size={32} icon="plus" />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue