1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-28 14:16:41 +07:00

fixed file dropping and panel buttons

This commit is contained in:
Fedor Katurov 2019-10-21 13:27:28 +07:00
parent 554a2ccfa7
commit 2ca9e9bdef
6 changed files with 41 additions and 14 deletions

View file

@ -0,0 +1,23 @@
import React, { FC } from 'react';
import { EditorUploadButton } from '~/components/editors/EditorUploadButton';
import { INode } from '~/redux/types';
interface IProps {
data: INode;
setData: (val: INode) => void;
temp: string[];
setTemp: (val: string[]) => void;
}
const EditorImageUploadButton: FC<IProps> = ({ data, setData, temp, setTemp }) => (
<EditorUploadButton
data={data}
setData={setData}
temp={temp}
setTemp={setTemp}
accept="image/*"
icon="image"
/>
);
export { EditorImageUploadButton };