@@ -37,17 +37,6 @@ import YouTube from "@/components/YouTube"
37
37
import { cn } from "@/lib/utils/cn"
38
38
import { getEditPath } from "@/lib/utils/editPath"
39
39
40
- const Page = ( props : HTMLAttributes < HTMLDivElement > ) => (
41
- < div className = "flex w-full flex-col border-b" { ...props } />
42
- )
43
-
44
- const ContentContainer = ( props : HTMLAttributes < HTMLDivElement > ) => (
45
- < div
46
- className = "flex justify-between bg-background-highlight lg:pe-8"
47
- { ...props }
48
- />
49
- )
50
-
51
40
const baseHeadingClasses = "font-mono uppercase font-bold scroll-mt-40"
52
41
53
42
const H1 = ( props : HTMLAttributes < HTMLHeadingElement > ) => (
@@ -77,15 +66,6 @@ const H4 = (props: HTMLAttributes<HTMLHeadingElement>) => (
77
66
< MdHeading4 className = { baseSubHeadingClasses } { ...props } />
78
67
)
79
68
80
- const Content = ( props : ChildOnlyProp ) => {
81
- return (
82
- < MainArticle
83
- className = "min-w-0 flex-1 px-8 pb-8 pt-8 md:px-16 md:pb-16 md:pt-12"
84
- { ...props }
85
- />
86
- )
87
- }
88
-
89
69
const BackToTop = ( props : ChildOnlyProp ) => (
90
70
< div className = "display-none mt-12 flex border-t pt-8" { ...props } >
91
71
< InlineLink href = "#top" >
@@ -140,16 +120,19 @@ export const DocsLayout = ({
140
120
const absoluteEditPath = getEditPath ( relativePath )
141
121
142
122
return (
143
- < Page >
123
+ < div className = "flex w-full flex-col border-b" >
144
124
< SideNavMobile path = { relativePath } />
145
125
{ isPageIncomplete && (
146
126
< BannerNotification shouldShow = { isPageIncomplete } >
147
127
< Translation id = "page-developers-docs:banner-page-incomplete" />
148
128
</ BannerNotification >
149
129
) }
150
- < ContentContainer dir = { contentNotTranslated ? "ltr" : "unset" } >
130
+ < div
131
+ className = "flex justify-between bg-background-highlight lg:pe-8"
132
+ dir = { contentNotTranslated ? "ltr" : "unset" }
133
+ >
151
134
< SideNav path = { relativePath } />
152
- < Content >
135
+ < MainArticle className = "min-w-0 flex-1 px-8 pb-8 pt-8 md:px-16 md:pb-16 md:pt-12" >
153
136
< H1 id = "top" > { frontmatter . title } </ H1 >
154
137
< FileContributors
155
138
contributors = { contributors }
@@ -167,7 +150,7 @@ export const DocsLayout = ({
167
150
< BackToTop />
168
151
< FeedbackCard isArticle />
169
152
< DocsNav contentNotTranslated = { contentNotTranslated } />
170
- </ Content >
153
+ </ MainArticle >
171
154
{ tocItems && (
172
155
< TableOfContents
173
156
editPath = { absoluteEditPath }
@@ -177,7 +160,7 @@ export const DocsLayout = ({
177
160
pt = { isPageIncomplete ? "5rem" : "3rem" }
178
161
/>
179
162
) }
180
- </ ContentContainer >
181
- </ Page >
163
+ </ div >
164
+ </ div >
182
165
)
183
166
}
0 commit comments