File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,6 @@ import YouTube from "@/components/YouTube"
29
29
30
30
import { getEditPath } from "@/lib/utils/editPath"
31
31
32
- const ContentContainer = ( props : HTMLAttributes < HTMLDivElement > ) => {
33
- return (
34
- < MainArticle
35
- className = "min-w-0 max-w-[1000px] rounded bg-background p-0 lg:p-16 lg:shadow"
36
- { ...props }
37
- />
38
- )
39
- }
40
-
41
32
const Heading1 = ( props : HTMLAttributes < HTMLHeadingElement > ) => (
42
33
< MdHeading1
43
34
className = "font-monospace uppercase max-lg:text-[1.75rem]"
@@ -117,7 +108,10 @@ export const TutorialLayout = ({
117
108
118
109
return (
119
110
< div className = "flex w-full gap-8 border-b bg-background p-8 lg:mx-auto lg:bg-background-highlight lg:shadow" >
120
- < ContentContainer dir = { contentNotTranslated ? "ltr" : "unset" } >
111
+ < MainArticle
112
+ className = "min-w-0 max-w-[1000px] rounded bg-background p-0 lg:p-16 lg:shadow"
113
+ dir = { contentNotTranslated ? "ltr" : "unset" }
114
+ >
121
115
< Heading1 > { frontmatter . title } </ Heading1 >
122
116
< TutorialMetadata frontmatter = { frontmatter } timeToRead = { timeToRead } />
123
117
< TableOfContents
@@ -133,7 +127,7 @@ export const TutorialLayout = ({
133
127
lastEditLocaleTimestamp = { lastEditLocaleTimestamp }
134
128
/>
135
129
< FeedbackCard />
136
- </ ContentContainer >
130
+ </ MainArticle >
137
131
{ tocItems && (
138
132
< TableOfContents
139
133
items = { tocItems }
You can’t perform that action at this time.
0 commit comments