Guest User

Untitled

a guest
Feb 20th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. diff --git a/src/components/PrimaryPanes/index.js b/src/components/PrimaryPanes/index.js
  2. index 333a452..4762d52 100644
  3. --- a/src/components/PrimaryPanes/index.js
  4. +++ b/src/components/PrimaryPanes/index.js
  5. @@ -109,30 +109,13 @@ class PrimaryPanes extends Component<Props> {
  6. }
  7. }
  8.  
  9. - renderOutline() {
  10. - const { selectLocation } = this.props;
  11. -
  12. - const outlineComp = features.outline ? (
  13. - <Outline selectLocation={selectLocation} />
  14. - ) : null;
  15. -
  16. - return outlineComp;
  17. - }
  18. -
  19. - renderSources() {
  20. - const { sources, selectLocation } = this.props;
  21. - return <SourcesTree sources={sources} selectLocation={selectLocation} />;
  22. - }
  23. -
  24. render() {
  25. const { selectedTab } = this.props;
  26.  
  27. return (
  28. <div className="sources-panel">
  29. {this.renderTabs()}
  30. - {selectedTab === "sources"
  31. - ? this.renderSources()
  32. - : this.renderOutline()}
  33. + {selectedTab === "sources" ? <SourcesTree /> : <Outline />}
  34. </div>
  35. );
  36. }
Add Comment
Please, Sign In to add comment