Skip to content

Commit

Permalink
Rename markdown prop to value
Browse files Browse the repository at this point in the history
  • Loading branch information
reyronald committed Jan 8, 2019
1 parent 71b20c9 commit 64a3556
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/auto-ui.js
Expand Up @@ -7898,14 +7898,14 @@ var Note = function (_PureComponent) {
return TextWrapper({}, _react2.default.createElement(_Text2.default, { content: content, isPureContent: true }));
}, _this.handleEditorValueChange = function (onValueChange) {
return function (_ref3) {
var markdown = _ref3.markdown;
var value = _ref3.markdown;

_this.setState({
newValueIsValid: !!markdown.trim(),
newValue: markdown
newValueIsValid: !!value.trim(),
newValue: value
});

onValueChange(markdown);
onValueChange(value);
};
}, _this.renderEditor = function (_ref4) {
var onValueChange = _ref4.onValueChange;
Expand Down
2 changes: 1 addition & 1 deletion lib/auto-ui.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/components/ui/Note.js
Expand Up @@ -189,13 +189,13 @@ class Note extends PureComponent<Props, State> {
return TextWrapper({}, <Text content={content} isPureContent />)
}

handleEditorValueChange = (onValueChange: (value: any) => mixed) => ({ markdown }: { markdown: string }) => {
handleEditorValueChange = (onValueChange: (value: any) => mixed) => ({ markdown: value }: { markdown: string }) => {
this.setState({
newValueIsValid: !!markdown.trim(),
newValue: markdown
newValueIsValid: !!value.trim(),
newValue: value
})

onValueChange(markdown)
onValueChange(value)
}

renderEditor = ({ onValueChange }: EditorProps) => {
Expand Down

0 comments on commit 64a3556

Please sign in to comment.