Typo fixes (#6104)

<!--
Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots!

Happy contributing!
-->
This commit is contained in:
Prashant Andani
2018-12-31 07:51:33 +05:30
committed by Ian Schmitz
parent bf669a3a84
commit 6fc1993728
2 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ class Collapsible extends Component<Props, State> {
collapsed: true,
};
toggleCollaped = () => {
toggleCollapsed = () => {
this.setState(state => ({
collapsed: !state.collapsed,
}));
@@ -60,7 +60,7 @@ class Collapsible extends Component<Props, State> {
return (
<div>
<button
onClick={this.toggleCollaped}
onClick={this.toggleCollapsed}
style={
collapsed ? collapsibleCollapsedStyle : collapsibleExpandedStyle
}
@@ -72,7 +72,7 @@ class Collapsible extends Component<Props, State> {
<div style={{ display: collapsed ? 'none' : 'block' }}>
{this.props.children}
<button
onClick={this.toggleCollaped}
onClick={this.toggleCollapsed}
style={collapsibleExpandedStyle}
>
{`${count} stack frames were expanded.`}