Skip to content

Commit

Permalink
Add some extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rainville committed Jan 18, 2020
1 parent 94009f9 commit a04a1ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client/src/containers/Editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions client/src/containers/Editor/EditorHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a04a1ce

Please sign in to comment.