From 6496bfe08c2c5bae024ae942ed743a5266b30e6d Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 3 Jun 2022 19:18:38 +0430 Subject: wip, the crud is working, now have to figure out how to update and save the actual text --- spring-front/src/components/Editor.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'spring-front/src/components/Editor.js') diff --git a/spring-front/src/components/Editor.js b/spring-front/src/components/Editor.js index f7c4ec5..d82a3fb 100644 --- a/spring-front/src/components/Editor.js +++ b/spring-front/src/components/Editor.js @@ -117,9 +117,9 @@ export default class Editor extends React.Component { this.setState((prevState) => ({ drawerActive: !prevState.drawerActive })); } - render() { - const { markdownText, drawerTitle, drawerChildren } = this.props; - const drawerStyles = this.state.drawerActive ? "is-expanded" : ""; + render(props) { + // const { markdownText, drawerTitle, drawerChildren } = this.props; + // const drawerStyles = this.state.drawerActive ? "is-expanded" : ""; return (
@@ -142,9 +142,7 @@ export default class Editor extends React.Component { onKeyDown={this.handleKeyDown.bind(this)} direction="rtl" tabIndex="0" - > - {markdownText} - + >
-- cgit v1.2.3