mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-29 18:05:47 +08:00
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:
committed by
Ian Schmitz
parent
bf669a3a84
commit
6fc1993728
@@ -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.`}
|
||||
|
||||
Reference in New Issue
Block a user