From: Grégoire Aubert Date: Tue, 1 May 2018 15:04:43 +0000 (+0200) Subject: SONAR-10646 Remove black navbar on sessions pages (login, logout, ...) X-Git-Tag: 7.5~1275 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e43f918b5fc85a8b13cf966a9c23bd7d9f344fb5;p=sonarqube.git SONAR-10646 Remove black navbar on sessions pages (login, logout, ...) --- diff --git a/server/sonar-web/src/main/js/app/components/SimpleContainer.tsx b/server/sonar-web/src/main/js/app/components/SimpleContainer.tsx index 800bbee9c22..4003c024695 100644 --- a/server/sonar-web/src/main/js/app/components/SimpleContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/SimpleContainer.tsx @@ -24,17 +24,16 @@ import NavBar from '../../components/nav/NavBar'; interface Props { children?: React.ReactNode; - hideLoggedInInfo?: boolean; } -export default function SimpleContainer({ children, hideLoggedInInfo }: Props) { +export default function SimpleContainer({ children }: Props) { return (
{children}
- +
); } diff --git a/server/sonar-web/src/main/js/app/components/SimpleSessionsContainer.tsx b/server/sonar-web/src/main/js/app/components/SimpleSessionsContainer.tsx new file mode 100644 index 00000000000..5f74da3b715 --- /dev/null +++ b/server/sonar-web/src/main/js/app/components/SimpleSessionsContainer.tsx @@ -0,0 +1,36 @@ +/* + * SonarQube + * Copyright (C) 2009-2018 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. + */ +import * as React from 'react'; +import GlobalFooterContainer from './GlobalFooterContainer'; + +interface Props { + children?: React.ReactNode; +} + +export default function SimpleSessionsContainer({ children }: Props) { + return ( +
+
+ {children} +
+ +
+ ); +} diff --git a/server/sonar-web/src/main/js/app/utils/startReactApp.js b/server/sonar-web/src/main/js/app/utils/startReactApp.js index 023bee3da4b..6d38859ecd7 100644 --- a/server/sonar-web/src/main/js/app/utils/startReactApp.js +++ b/server/sonar-web/src/main/js/app/utils/startReactApp.js @@ -30,7 +30,7 @@ import MigrationContainer from '../components/MigrationContainer'; import App from '../components/App'; import GlobalContainer from '../components/GlobalContainer'; import SimpleContainer from '../components/SimpleContainer'; -import SimpleSessionsContainer from '../../apps/sessions/components/SimpleSessionsContainer'; +import SimpleSessionsContainer from '../components/SimpleSessionsContainer'; import Landing from '../components/Landing'; import ProjectAdminContainer from '../components/ProjectAdminContainer'; import ProjectPageExtension from '../components/extensions/ProjectPageExtension'; diff --git a/server/sonar-web/src/main/js/apps/sessions/components/SimpleSessionsContainer.tsx b/server/sonar-web/src/main/js/apps/sessions/components/SimpleSessionsContainer.tsx deleted file mode 100644 index 6e7df5248e9..00000000000 --- a/server/sonar-web/src/main/js/apps/sessions/components/SimpleSessionsContainer.tsx +++ /dev/null @@ -1,29 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2018 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. - */ -import * as React from 'react'; -import SimpleContainer from '../../../app/components/SimpleContainer'; - -interface Props { - children?: React.ReactNode; -} - -export default function SimpleSessionsContainer({ children }: Props) { - return {children}; -}