Skip to content

Commit 8211ad2

Browse files
committed
KTL-1240: removed greyLayout prop as it is not used anymore
1 parent d35c0fe commit 8211ad2

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

src/components/Layout/index.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ interface MDLayoutProps {
2424
title?: string;
2525
layout?: LayoutSize;
2626
contactUs?: boolean;
27-
greyLayout?: boolean;
2827
}
2928

3029
export interface BaseLayoutProps {
3130
location: Location;
3231
children: null | ReactNode;
33-
greyLayout?: boolean;
3432
socialImage?: string;
3533
}
3634

@@ -44,7 +42,7 @@ type MarkdownLayoutProps = BaseLayoutProps & {
4442

4543
type LayoutProps = BaseLayoutProps & MDLayoutProps;
4644

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) {
4846
const content =
4947
layout === LayoutSize.Wide ? (
5048
children
@@ -56,7 +54,7 @@ export function Layout({ children, location, title, layout, socialImage = null,
5654
<LocationContext.Provider value={location}>
5755
<SEO title={title} image={socialImage} />
5856
<Header />
59-
<div className={cn(styles.layout, { [styles.greyLayout]: Boolean(greyLayout) })}>
57+
<div className={styles.layout}>
6058
{content}
6159
{contactUs && <ContactUs />}
6260
<Footer />
@@ -86,9 +84,8 @@ export function PageMarkdownLayout({ pageContext, ...props }: MarkdownLayoutProp
8684
const title = pageContext?.frontmatter?.title;
8785
const layout = pageContext?.frontmatter?.layout ?? LayoutSize.Narrow;
8886
const contact = pageContext?.frontmatter?.contactUs ?? false;
89-
const greyLayout = pageContext?.frontmatter?.greyLayout ?? false;
9087

91-
return <MarkdownLayout {...props} title={title} layout={layout} contactUs={contact} greyLayout={greyLayout} />;
88+
return <MarkdownLayout {...props} title={title} layout={layout} contactUs={contact} />;
9289
}
9390

9491
export default PageMarkdownLayout;

src/components/Layout/layout.module.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,11 @@ body {
3939
flex-direction: column;
4040
flex-grow: 1;
4141
justify-content: space-between;
42-
43-
background: #fff;
44-
}
45-
46-
.greyLayout {
47-
background: #f4f4f4;
42+
background-color: #fff;
4843
}
4944

5045
.narrow {
5146
max-width: 720px;
52-
5347
margin-top: var(--ktf-fuild-spacing-xl);
5448
margin-bottom: var(--ktf-fuild-spacing-xl);
5549
}

src/pages/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: "Home"
33
layout: "wide"
4-
greyLayout: false
54
contactUs: true
65
---
76
import trademarkIcon from "../images/highlights/trademark.svg";

0 commit comments

Comments
 (0)