diff --git a/src/modules/ReactReader/ReactReader.js b/src/modules/ReactReader/ReactReader.js index 1c524b7..1a912d9 100644 --- a/src/modules/ReactReader/ReactReader.js +++ b/src/modules/ReactReader/ReactReader.js @@ -30,13 +30,13 @@ class ReactReader extends PureComponent { super(props); this.readerRef = React.createRef(); this.state = { - expanedToc: false, + expandedToc: false, toc: false }; } toggleToc = () => { this.setState({ - expanedToc: !this.state.expanedToc + expandedToc: !this.state.expandedToc }); }; @@ -61,7 +61,7 @@ class ReactReader extends PureComponent { }; renderToc() { - const { toc, expanedToc } = this.state; + const { toc, expandedToc } = this.state; const { styles } = this.props; return (
@@ -77,7 +77,7 @@ class ReactReader extends PureComponent { ))}
- {expanedToc && ( + {expandedToc && (
)}
@@ -88,21 +88,21 @@ class ReactReader extends PureComponent { const { locationChanged } = this.props; this.setState( { - expanedToc: false + expandedToc: false }, () => locationChanged && locationChanged(loc) ); }; renderTocToggle() { - const { expanedToc } = this.state; + const { expandedToc } = this.state; const { styles } = this.props; return (