aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/SimpleContainer.js
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-04 18:14:49 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-10 06:39:29 -0700
commitcb8126d2d05acc3605fb233c68b935de4dc74214 (patch)
treee6c3e85696630f6101ce7d6ca080ef3d5485e113 /server/sonar-web/src/main/js/app/components/SimpleContainer.js
parent3bcf9ea40fe7dc563a1c8e438c0f6e3b5226466d (diff)
downloadsonarqube-cb8126d2d05acc3605fb233c68b935de4dc74214.tar.gz
sonarqube-cb8126d2d05acc3605fb233c68b935de4dc74214.zip
SONAR-9925 Rewrite session to typescript
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/SimpleContainer.js')
-rw-r--r--server/sonar-web/src/main/js/app/components/SimpleContainer.js65
1 files changed, 0 insertions, 65 deletions
diff --git a/server/sonar-web/src/main/js/app/components/SimpleContainer.js b/server/sonar-web/src/main/js/app/components/SimpleContainer.js
deleted file mode 100644
index 02596356d31..00000000000
--- a/server/sonar-web/src/main/js/app/components/SimpleContainer.js
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-// @flow
-import React from 'react';
-import GlobalFooterContainer from './GlobalFooterContainer';
-import NavBar from '../../components/nav/NavBar';
-
-/*::
-type Props = {
- children?: React.Element<*> | Array<React.Element<*>>,
- hideLoggedInInfo?: boolean
-};
-*/
-
-export default class SimpleContainer extends React.PureComponent {
- /*:: props: Props; */
-
- componentDidMount() {
- const html = document.querySelector('html');
- if (html) {
- html.classList.add('dashboard-page');
- }
- }
-
- componentWillUnmount() {
- const html = document.querySelector('html');
- if (html) {
- html.classList.remove('dashboard-page');
- }
- }
-
- render() {
- return (
- <div className="global-container">
- <div className="page-wrapper" id="container">
- <NavBar className="navbar-global" id="global-navigation" height={30} />
-
- <div id="bd" className="page-wrapper-simple">
- <div id="nonav" className="page-simple">
- {this.props.children}
- </div>
- </div>
- </div>
- <GlobalFooterContainer hideLoggedInInfo={this.props.hideLoggedInInfo} />
- </div>
- );
- }
-}