-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should just do:
diff --git a/src/components/MarkdownTextArea/index.jsx b/src/components/MarkdownTextArea/index.jsx
index ec0c9e5..100dc72 100644
--- a/src/components/MarkdownTextArea/index.jsx
+++ b/src/components/MarkdownTextArea/index.jsx
@@ -107,8 +107,7 @@ export default class MarkdownTextArea extends Component {
};
render() {
- const { classes, rows, markdownProps } = this.props;
- const { onChange, defaultTabIndex, ...props } = this.props;
+ const { classes, rows, markdownProps, onChange, defaultTabIndex, ...props } = this.props;
const { tabIndex, value } = this.state;
const isPreview = tabIndex === 1;
@helfi92 Error is of changing MarkdownProps to Markdownprops. |
Do you still see the error after implementing the diff mentioned above? You can test it by running the components styleguide. https://github.com/mozilla-frontend-infra/components/blob/master/README.md#development-and-contributing |
Can you explain to me this, why is the error not showing now ? |
It's because markdownProps was being fed to the TextField component. markdownProps is not defined in TextField... render() {
const { classes, rows, markdownProps } = this.props;
const { onChange, defaultTabIndex, ...props } = this.props;
// ...
<TextField
name="Write"
onChange={this.handleValueChange}
fullWidth
multiline
rows={rows}
// ...props will have markdownProps which is not defined in TextField
{...props}
value={props.value || value}
/>
} |
Could you rename the pull-request to follow the convention we use for this repo? https://github.com/mozilla-frontend-infra/components#committing-and-pushing-changes Thanks! |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
🎉 This PR is included in version 3.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
For taskcluster/taskcluster#2263
@helfi92