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

fixed text editor appearance

This commit is contained in:
Fedor Katurov 2019-10-17 13:17:34 +07:00
parent a37bc76965
commit 57f90ee46b
5 changed files with 19 additions and 6 deletions

View file

@ -17,6 +17,7 @@ type IProps = typeof mapDispatchToProps & {};
const SubmitBarUnconnected: FC<IProps> = ({ nodeCreate }) => {
const onOpenImageEditor = useCallback(() => nodeCreate(NODE_TYPES.IMAGE), [nodeCreate]);
const onOpenTextEditor = useCallback(() => nodeCreate(NODE_TYPES.TEXT), [nodeCreate]);
return (
<div className={styles.wrap}>
@ -24,6 +25,10 @@ const SubmitBarUnconnected: FC<IProps> = ({ nodeCreate }) => {
<div onClick={onOpenImageEditor}>
<Icon icon="image" />
</div>
<div onClick={onOpenTextEditor}>
<Icon icon="image" />
</div>
</div>
<div className={styles.button}>