From fc98e96d9435f1c9b5c607827f66bed20baf6e75 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 25 Sep 2017 21:40:59 -0700 Subject: [PATCH] cleanup --- frontend/components/Editor/components/TodoItem.js | 4 ++-- frontend/components/Editor/components/TodoList.js | 13 +++++++++++++ frontend/components/Editor/schema.js | 15 +++------------ 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 frontend/components/Editor/components/TodoList.js diff --git a/frontend/components/Editor/components/TodoItem.js b/frontend/components/Editor/components/TodoItem.js index 53c38ef4..0fd1d652 100644 --- a/frontend/components/Editor/components/TodoItem.js +++ b/frontend/components/Editor/components/TodoItem.js @@ -23,7 +23,7 @@ export default class TodoItem extends Component { return ( - { return { marks: { @@ -63,7 +54,7 @@ const createSchema = () => { }, rules: [ - // ensure first node is a heading + // ensure first node is always a heading { match: (node: Node) => { return node.kind === 'document'; @@ -77,7 +68,7 @@ const createSchema = () => { }, }, - // remove any marks in first heading + // automatically removes any marks in first heading { match: (node: Node) => { return node.kind === 'heading1';