Skip to content

Commit

Permalink
Revert "Keep the footer on the bottom (#5930)" (#5978)
Browse files Browse the repository at this point in the history
This reverts commit 37248dd.
  • Loading branch information
HelNershingThapa committed Jul 12, 2023
1 parent fc2f65b commit a0c306c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/banner/topBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function TopBanner() {
const [, error, data] = useFetchWithAbort(`system/banner/`);

return (
<div>
<>
{location.pathname === '/' && data.visible && !error && (
<div className="ph3 b--grey-light bb bg-tan top-banner-container">
<div
Expand All @@ -18,6 +18,6 @@ export function TopBanner() {
/>
</div>
)}
</div>
</>
);
}
5 changes: 1 addition & 4 deletions frontend/src/views/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import { Footer } from '../components/footer';
// Components common to all routes can be included in <App>
export function Root() {
return (
<div
className="min-vh-100-l"
style={{ display: 'grid', gridTemplateRows: 'auto auto 1fr auto' }}
>
<div className="flex flex-column">
<TopBanner />
<Header />
<QueryParamProvider adapter={ReactRouter6Adapter}>
Expand Down

0 comments on commit a0c306c

Please sign in to comment.