mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
drop cell
This commit is contained in:
parent
5bf67309c3
commit
84f73c9cf3
4 changed files with 52 additions and 5 deletions
16
src/components/editors/ImageUploadButton/index.tsx
Normal file
16
src/components/editors/ImageUploadButton/index.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import React, { FC, ChangeEventHandler } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
|
||||
interface IProps {
|
||||
onUpload?: ChangeEventHandler<HTMLInputElement>;
|
||||
};
|
||||
|
||||
const ImageUploadButton: FC<IProps> = ({
|
||||
onUpload,
|
||||
}) => (
|
||||
<div className={styles.wrap}>
|
||||
<input type="file" onChange={onUpload} />
|
||||
</div>
|
||||
)
|
||||
|
||||
export { ImageUploadButton };
|
Loading…
Add table
Add a link
Reference in a new issue