import mixin from 'reactjs-mixin';
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import {routerShape} from 'react-router';

import Icon from '../components/Icon';
import RouterUtil from '../utils/RouterUtil';
import SidebarActions from '../events/SidebarActions';
import TabsMixin from '../mixins/TabsMixin';

class UniversePage extends mixin(TabsMixin) {
  constructor() {
    super();

    this.tabs_tabs = {};
    this.state = {};
  }

  componentWillMount() {
    this.updateCurrentTab();
  }

  componentWillReceiveProps(nextProps) {
    this.updateCurrentTab(nextProps);
  }

  updateCurrentTab(nextProps) {
    let {routes} = nextProps || this.props;
    let currentTab = RouterUtil.reconstructPathFromRoutes(routes);

    // Universe Tabs
    this.tabs_tabs = {
      '/universe/packages': 'Packages',
      '/universe/installed-packages': 'Installed'
    };

    this.setState({currentTab});
  }

  getNavigation() {
    if (RouterUtil.shouldHideNavigation(this.props.routes)) {
      return null;
    }

    return (
      <ul className="menu-tabbed">
        {this.tabs_getRoutedTabs()}
      </ul>
    );
  }

  render() {
    return this.props.children;
  }
}

UniversePage.contextTypes = {
  router: routerShape
};

UniversePage.routeConfig = {
  label: 'Packages',
  icon: <Icon id="packages-inverse" size="small" family="product" />,
  matches: /^\/universe/
};

UniversePage.willTransitionTo = function () {
  SidebarActions.close();
};

module.exports = UniversePage;

@@ -4,1281 +4,164 @@
 ort 
-mixin from 'reactjs-mixin';%0A/* eslint-disable no-unused-vars */%0Aimport React from 'react';%0A/* eslint-enable no-unused-vars */%0Aimport %7BrouterShape%7D from 'react-router';%0A%0Aimport Icon from '../components/Icon';%0Aimport RouterUtil from '../utils/RouterUtil';%0Aimport SidebarActions from '../events/SidebarActions';%0Aimport TabsMixin from '../mixins/TabsMixin';%0A%0Aclass UniversePage extends mixin(TabsMixin) %7B%0A  constructor() %7B%0A    super();%0A%0A    this.tabs_tabs = %7B%7D;%0A    this.state = %7B%7D;%0A  %7D%0A%0A  componentWillMount() %7B%0A    this.updateCurrentTab();%0A  %7D%0A%0A  componentWillReceiveProps(nextProps) %7B%0A    this.updateCurrentTab(nextProps);%0A  %7D%0A%0A  updateCurrentTab(nextProps) %7B%0A    let %7Broutes%7D = nextProps %7C%7C this.props;%0A    let currentTab = RouterUtil.reconstructPathFromRoutes(routes);%0A%0A    // Universe Tabs%0A    this.tabs_tabs = %7B%0A      '/universe/packages': 'Packages',%0A      '/universe/installed-packages': 'Installed'%0A    %7D;%0A%0A    this.setState(%7BcurrentTab%7D);%0A  %7D%0A%0A  getNavigation() %7B%0A    if (RouterUtil.shouldHideNavigation(this.props.routes)) %7B%0A      return null;%0A    %7D%0A%0A    return (%0A      %3Cul className=%22menu-tabbed%22%3E%0A        %7Bthis.tabs_getRoutedTabs()%7D%0A      %3C/ul%3E%0A    );%0A  %7D%0A%0A  render() %7B%0A    return this.props.children;%0A  %7D%0A%7D%0A%0AUniversePage.contextTypes = %7B%0A  router: routerShape%0A%7D;
+React from 'react';%0A%0Aimport Icon from '../components/Icon';%0A%0Aclass UniversePage extends React.Component %7B%0A  render() %7B%0A    return this.props.children;%0A  %7D%0A%7D
 %0A%0AUn
@@ -311,84 +311,8 @@
 %7D;%0A%0A
-UniversePage.willTransitionTo = function () %7B%0A  SidebarActions.close();%0A%7D;%0A%0A
 modu

Remove unused code from UniversePage