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:
parent
554a2ccfa7
commit
2ca9e9bdef
6 changed files with 41 additions and 14 deletions
23
src/components/editors/EditorImageUploadButton/index.tsx
Normal file
23
src/components/editors/EditorImageUploadButton/index.tsx
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue