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:
parent
ee17b72a7f
commit
bfc779745a
6 changed files with 45 additions and 12 deletions
|
@ -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} />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue