We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0eb1f76 + 0024c60 commit 513a368Copy full SHA for 513a368
src/shared/components/Settings/Accordion/index.jsx
@@ -38,20 +38,6 @@ export default class Accordion extends React.Component {
38
this.setState({ currentItem: currentSidebarTab });
39
}
40
41
- /*
42
- * Sync the state of the Accordion with the state of the Sidebar
43
- */
44
- componentWillReceiveProps(nextProps) {
45
- const {
46
- hasToggled,
47
- currentItem,
48
- } = this.state;
49
- const { currentSidebarTab } = nextProps;
50
- if (hasToggled && currentItem !== currentSidebarTab) {
51
- this.setState({ currentItem: currentSidebarTab });
52
- }
53
54
-
55
/*
56
* Returns whether a tab is opened or closed.
57
*/
0 commit comments