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

added editor panel

This commit is contained in:
muerwre 2019-08-06 19:00:28 +07:00
parent ee17b72a7f
commit bfc779745a
6 changed files with 45 additions and 12 deletions

View file

@ -10,6 +10,7 @@ import * as styles from './styles.scss';
import { connect } from 'react-redux';
import { selectNode } from '~/redux/node/selectors';
import { ImageEditor } from '~/components/editors/ImageEditor';
import { EditorPanel } from '~/components/editors/EditorPanel';
const mapStateToProps = selectNode;
const mapDispatchToProps = {};
@ -23,7 +24,12 @@ const EditorDialogUnconnected: FC<IProps> = ({ onRequestClose, editor }) => {
}, [setData, data]);
const buttons = (
<Padder>
<Padder style={{ position: 'relative' }}>
<EditorPanel
data={data}
setData={setData}
/>
<Group horizontal>
<InputText title="Название" value={data.title} handler={setTitle} />