From a04a1cedc264743017c93e30e2b50143e54122be Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Sun, 19 Jan 2020 01:02:06 +1300 Subject: [PATCH] Add some extra comments --- client/src/containers/Editor/Editor.js | 5 ----- client/src/containers/Editor/EditorHeader.js | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/client/src/containers/Editor/Editor.js b/client/src/containers/Editor/Editor.js index 68e7a0ebc..7b0b2038c 100644 --- a/client/src/containers/Editor/Editor.js +++ b/client/src/containers/Editor/Editor.js @@ -196,11 +196,6 @@ class Editor extends Component { }); } - /** - * Pass some extra props to our EditorHeader. - * @param {Object} fieldProps - */ - /** * Wrap the the Header field into an EditorHeader component. * @param {Component} SchemaComponent diff --git a/client/src/containers/Editor/EditorHeader.js b/client/src/containers/Editor/EditorHeader.js index a70379cd9..a3460a35a 100644 --- a/client/src/containers/Editor/EditorHeader.js +++ b/client/src/containers/Editor/EditorHeader.js @@ -43,6 +43,9 @@ export const buttonStates = { NONE }; +/** + * Wraps the form headers with some buttons to switch between different form. + */ const EditorHeader = ({ onCancel, onDetails, showButton, children }) => { const cancelHandler = handle(onCancel);