diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js b/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js index 2e1410d8e0c..22fd723958b 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js +++ b/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js @@ -18,12 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; -import Helmet from 'react-helmet'; -import PageHeaderContainer from './PageHeaderContainer'; import ProjectsListContainer from './ProjectsListContainer'; -import ProjectsListHeaderContainer from './ProjectsListHeaderContainer'; -import GlobalMessagesContainer from '../../../app/components/GlobalMessagesContainer'; -import { translate } from '../../../helpers/l10n'; import '../styles.css'; export default class FavoriteProjects extends React.Component { @@ -33,42 +28,22 @@ export default class FavoriteProjects extends React.Component { }; componentDidMount () { - document.querySelector('html').classList.add('dashboard-page'); this.props.fetchFavoriteProjects(); } - componentWillUnmount () { - document.querySelector('html').classList.remove('dashboard-page'); - } - render () { if (!this.props.user) { return null; } return ( - <div id="projects-page" className="page page-limited"> - <Helmet title={translate('projects.page')} titleTemplate="SonarQube - %s"/> - - <GlobalMessagesContainer/> - - <div className="page-with-sidebar page-with-left-sidebar"> - <div className="page-main"> - <div className="projects-list-container"> - <ProjectsListHeaderContainer/> - <ProjectsListContainer/> - </div> + <div className="page-with-sidebar"> + <div className="page-main"> + <div className="projects-list-container"> + <ProjectsListContainer/> </div> - <aside className="page-sidebar-fixed projects-sidebar"> - <PageHeaderContainer/> - <div className="search-navigator-facets-list"> - <div className="projects-facets-header"> - <h3>Filters</h3> - </div> - <p className="note text-center">Filters are not available.</p> - </div> - </aside> </div> + <aside className="page-sidebar-fixed projects-sidebar"/> </div> ); } |