1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed editor structure

This commit is contained in:
muerwre 2019-08-21 11:23:15 +07:00
parent c3b444dc9f
commit cad4e683bc
5 changed files with 41 additions and 37 deletions

View file

@ -17,16 +17,14 @@ type IProps = ReturnType<typeof mapStateToProps> &
pending_files: IUploadStatus[];
setData: (val: INode) => void;
onFileMove: (o: number, n: number) => void;
onFileMove: (from: number, to: number) => void;
onInputChange: ChangeEventHandler<HTMLInputElement>;
onDrop: DragEventHandler<HTMLFormElement>;
};
const ImageEditorUnconnected: FC<IProps> = ({
data,
onFileMove,
onInputChange,
onDrop,
pending_files,
}) => (
<ImageGrid
@ -34,7 +32,6 @@ const ImageEditorUnconnected: FC<IProps> = ({
items={data.files}
locked={pending_files}
onUpload={onInputChange}
onDrop={onDrop}
/>
);