Skip to content

Commit af83503

Browse files
committed
cleanup
1 parent e6f5ad3 commit af83503

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

src/layouts/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
export * from "./BaseLayout"
22
export * from "./Docs"
33
export * from "./md"
4-
export * from "./md/Roadmap"
5-
export * from "./md/Staking"
6-
export * from "./md/Translatathon"
74
export * from "./Static"
85
export * from "./Tutorial"
96
export * from "./UseCases"

src/layouts/md/Roadmap.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ export const RoadmapLayout = ({
8888
return (
8989
<ContentLayout
9090
dir={contentNotTranslated ? "ltr" : "unset"}
91+
tocItems={tocItems}
92+
dropdownLinks={dropdownLinks}
93+
maxDepth={frontmatter.sidebarDepth}
9194
heroProps={{
9295
...frontmatter,
9396
breadcrumbs: { slug, startDepth: 1 },
9497
heroImg: frontmatter.image,
9598
}}
96-
tocItems={tocItems}
97-
dropdownLinks={dropdownLinks}
98-
maxDepth={frontmatter.sidebarDepth}
9999
>
100100
{children}
101101
</ContentLayout>

src/layouts/md/Staking.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ export const StakingLayout = ({
210210
return (
211211
<ContentLayout
212212
dir={contentNotTranslated ? "ltr" : "unset"}
213+
tocItems={tocItems}
214+
dropdownLinks={dropdownLinks}
215+
maxDepth={frontmatter.sidebarDepth}
213216
heroProps={{
214217
...frontmatter,
215218
breadcrumbs: { slug, startDepth: 1 },
@@ -226,9 +229,6 @@ export const StakingLayout = ({
226229
</>
227230
),
228231
}}
229-
tocItems={tocItems}
230-
dropdownLinks={dropdownLinks}
231-
maxDepth={frontmatter.sidebarDepth}
232232
>
233233
{children}
234234
<StakingCommunityCallout my={16} />

src/layouts/md/Translatathon.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ export const TranslatathonLayout = ({
187187
return (
188188
<ContentLayout
189189
dir="ltr"
190+
tocItems={tocItems}
191+
dropdownLinks={dropdownLinks}
190192
heroProps={{
191193
...frontmatter,
192194
breadcrumbs: { slug, startDepth: 1 },
@@ -209,10 +211,7 @@ export const TranslatathonLayout = ({
209211
},
210212
],
211213
}}
212-
tocItems={tocItems}
213-
dropdownLinks={dropdownLinks}
214214
>
215-
{/* <CountdownBanner /> */}
216215
{children}
217216
</ContentLayout>
218217
)

src/layouts/md/Upgrade.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export const UpgradeLayout = ({
6969
return (
7070
<ContentLayout
7171
dir={contentNotTranslated ? "ltr" : "unset"}
72+
tocItems={tocItems}
73+
dropdownLinks={dropdownLinks}
7274
heroProps={{
7375
...frontmatter,
7476
breadcrumbs: { slug, startDepth: 1 },
@@ -89,8 +91,6 @@ export const UpgradeLayout = ({
8991
</>
9092
),
9193
}}
92-
tocItems={tocItems}
93-
dropdownLinks={dropdownLinks}
9494
>
9595
{children}
9696
</ContentLayout>

0 commit comments

Comments
 (0)