interface Props {
children?: React.ReactNode;
- hideLoggedInInfo?: boolean;
}
-export default function SimpleContainer({ children, hideLoggedInInfo }: Props) {
+export default function SimpleContainer({ children }: Props) {
return (
<div className="global-container">
<div className="page-wrapper" id="container">
<NavBar className="navbar-global" height={theme.globalNavHeightRaw} />
{children}
</div>
- <GlobalFooterContainer hideLoggedInInfo={hideLoggedInInfo} />
+ <GlobalFooterContainer />
</div>
);
}
--- /dev/null
+/*
+ * 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 (
+ <div className="global-container">
+ <div className="page-wrapper" id="container">
+ {children}
+ </div>
+ <GlobalFooterContainer hideLoggedInInfo={true} />
+ </div>
+ );
+}
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';
+++ /dev/null
-/*
- * 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 <SimpleContainer hideLoggedInInfo={true}>{children}</SimpleContainer>;
-}