@@ -24,13 +24,11 @@ interface MDLayoutProps {
24
24
title ?: string ;
25
25
layout ?: LayoutSize ;
26
26
contactUs ?: boolean ;
27
- greyLayout ?: boolean ;
28
27
}
29
28
30
29
export interface BaseLayoutProps {
31
30
location : Location ;
32
31
children : null | ReactNode ;
33
- greyLayout ?: boolean ;
34
32
socialImage ?: string ;
35
33
}
36
34
@@ -44,7 +42,7 @@ type MarkdownLayoutProps = BaseLayoutProps & {
44
42
45
43
type LayoutProps = BaseLayoutProps & MDLayoutProps ;
46
44
47
- export function Layout ( { children, location, title, layout, socialImage = null , contactUs, greyLayout } : LayoutProps ) {
45
+ export function Layout ( { children, location, title, layout, socialImage = null , contactUs } : LayoutProps ) {
48
46
const content =
49
47
layout === LayoutSize . Wide ? (
50
48
children
@@ -56,7 +54,7 @@ export function Layout({ children, location, title, layout, socialImage = null,
56
54
< LocationContext . Provider value = { location } >
57
55
< SEO title = { title } image = { socialImage } />
58
56
< Header />
59
- < div className = { cn ( styles . layout , { [ styles . greyLayout ] : Boolean ( greyLayout ) } ) } >
57
+ < div className = { styles . layout } >
60
58
{ content }
61
59
{ contactUs && < ContactUs /> }
62
60
< Footer />
@@ -86,9 +84,8 @@ export function PageMarkdownLayout({ pageContext, ...props }: MarkdownLayoutProp
86
84
const title = pageContext ?. frontmatter ?. title ;
87
85
const layout = pageContext ?. frontmatter ?. layout ?? LayoutSize . Narrow ;
88
86
const contact = pageContext ?. frontmatter ?. contactUs ?? false ;
89
- const greyLayout = pageContext ?. frontmatter ?. greyLayout ?? false ;
90
87
91
- return < MarkdownLayout { ...props } title = { title } layout = { layout } contactUs = { contact } greyLayout = { greyLayout } /> ;
88
+ return < MarkdownLayout { ...props } title = { title } layout = { layout } contactUs = { contact } /> ;
92
89
}
93
90
94
91
export default PageMarkdownLayout ;
0 commit comments