mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
moved funcs to editor from image-editor
This commit is contained in:
parent
84f73c9cf3
commit
3ed01773c4
5 changed files with 129 additions and 132 deletions
|
@ -1,12 +1,18 @@
|
|||
import React, { FC } from 'react';
|
||||
import React, { FC, ChangeEventHandler } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
import { INode } from '~/redux/types';
|
||||
import { ImageUploadButton } from '~/components/editors/ImageUploadButton';
|
||||
|
||||
interface IProps {
|
||||
data: INode;
|
||||
setData: (val: INode) => void;
|
||||
onUpload: ChangeEventHandler<HTMLInputElement>;
|
||||
}
|
||||
|
||||
const EditorPanel: FC<IProps> = () => <div className={styles.panel} />;
|
||||
const EditorPanel: FC<IProps> = ({ onUpload }) => (
|
||||
<div className={styles.panel}>
|
||||
<ImageUploadButton onUpload={onUpload} />
|
||||
</div>
|
||||
);
|
||||
|
||||
export { EditorPanel };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue