@@ -3,7 +3,10 @@ import { GoogleTagManager } from 'src/common/GoogleTagManager';
33import styled from 'styled-components' ;
44import { Logged } from './Logged' ;
55
6- const Container = styled . div < { excludeMarginTop ?: boolean } > `
6+ const Container = styled . div < {
7+ excludeMarginTop ?: boolean ;
8+ excludeMarginBottom ?: boolean ;
9+ } > `
710 /* Hide scrollbar for Chrome, Safari and Opera */
811 ::-webkit-scrollbar {
912 display: none;
@@ -18,10 +21,12 @@ const Container = styled.div<{ excludeMarginTop?: boolean }>`
1821 background-color: ${ ( { theme } ) => theme . palette . grey [ 100 ] } ;
1922 margin: ${ ( { theme } ) => theme . space . xxl } auto;
2023 ${ ( { excludeMarginTop } ) => excludeMarginTop && `margin-top: 0;` }
24+ ${ ( { excludeMarginBottom } ) => excludeMarginBottom && `margin-bottom: 0;` }
2125
2226 @media (max-width: ${ ( { theme } ) => theme . breakpoints . sm } ) {
2327 margin: ${ ( { theme } ) => theme . space . md } auto;
2428 ${ ( { excludeMarginTop } ) => excludeMarginTop && `margin-top: 0;` }
29+ ${ ( { excludeMarginBottom } ) => excludeMarginBottom && `margin-bottom: 0;` }
2530 }
2631` ;
2732
@@ -31,16 +36,22 @@ export const Page = ({
3136 pageHeader,
3237 route,
3338 excludeMarginTop,
39+ excludeMarginBottom,
3440} : {
3541 children : React . ReactNode ;
3642 title ?: string ;
3743 pageHeader ?: React . ReactNode ;
3844 route : string ;
3945 excludeMarginTop ?: boolean ;
46+ excludeMarginBottom ?: boolean ;
4047} ) => (
4148 < GoogleTagManager title = { title } >
4249 < Logged route = { route } pageHeader = { pageHeader } >
43- < Container id = "container" excludeMarginTop = { excludeMarginTop } >
50+ < Container
51+ id = "container"
52+ excludeMarginTop = { excludeMarginTop }
53+ excludeMarginBottom = { excludeMarginBottom }
54+ >
4455 { children }
4556 </ Container >
4657 </ Logged >
0 commit comments