Skip to content

Commit 06474b4

Browse files
committed
Layout not used anywhere
1 parent 996d8e4 commit 06474b4

File tree

2 files changed

+16
-32
lines changed

2 files changed

+16
-32
lines changed

src/components/ExamplesPage.tsx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import BrowserOnly from '@docusaurus/BrowserOnly';
22
import React, { useEffect, useState } from "react";
33
import Layout from "@theme/Layout";
44

5-
import Meta from "@site/src/components/Meta";
6-
75
import clsx from "clsx";
86

97
import {
@@ -26,37 +24,37 @@ export default function (props) {
2624
);
2725
}
2826

29-
function ExampleLayout({ children }) {
30-
return (
31-
<Layout>
32-
<Meta />
33-
<div className="max-w-screen-lg min-h-screen px-4 py-20 mx-auto content lg:px-0">
34-
<div>
35-
{children}
36-
</div>
37-
</div>
38-
</Layout>
39-
)
40-
}
27+
// function Layout({ children }) {
28+
// return (
29+
// <Layout>
30+
// <Meta />
31+
// <div className="max-w-screen-lg min-h-screen px-4 py-20 mx-auto content lg:px-0">
32+
// <div>
33+
// {children}
34+
// </div>
35+
// </div>
36+
// </Layout>
37+
// )
38+
// }
4139

4240
function ExamplesPage({ examples, example }) {
4341
if (example) {
4442
return (
45-
<ExampleLayout>
43+
<Layout>
4644
<ExampleContent entry={example} />
4745
<a href="/examples">
4846
<div className="flex flex-row items-center justify-center pt-20 space-x-2 text-3xl">
4947
<div>More examples</div> <FontAwesomeIcon icon={faArrowRight} size="xs" />
5048
</div>
5149
</a>
52-
</ExampleLayout>
50+
</Layout>
5351
);
5452
}
5553

5654
return (
57-
<ExampleLayout>
55+
<Layout>
5856
<Examples examples={examples} />
59-
</ExampleLayout>
57+
</Layout>
6058
)
6159
}
6260

src/components/Layout.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)