Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/components/PrimaryPanes/index.js b/src/components/PrimaryPanes/index.js
- index 333a452..4762d52 100644
- --- a/src/components/PrimaryPanes/index.js
- +++ b/src/components/PrimaryPanes/index.js
- @@ -109,30 +109,13 @@ class PrimaryPanes extends Component<Props> {
- }
- }
- - renderOutline() {
- - const { selectLocation } = this.props;
- -
- - const outlineComp = features.outline ? (
- - <Outline selectLocation={selectLocation} />
- - ) : null;
- -
- - return outlineComp;
- - }
- -
- - renderSources() {
- - const { sources, selectLocation } = this.props;
- - return <SourcesTree sources={sources} selectLocation={selectLocation} />;
- - }
- -
- render() {
- const { selectedTab } = this.props;
- return (
- <div className="sources-panel">
- {this.renderTabs()}
- - {selectedTab === "sources"
- - ? this.renderSources()
- - : this.renderOutline()}
- + {selectedTab === "sources" ? <SourcesTree /> : <Outline />}
- </div>
- );
- }
Add Comment
Please, Sign In to add comment