Skip to content

Commit 239634b

Browse files
committed
cleanup components
1 parent 4afaa8a commit 239634b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/layouts/Tutorial.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ import YouTube from "@/components/YouTube"
2929

3030
import { getEditPath } from "@/lib/utils/editPath"
3131

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-
4132
const Heading1 = (props: HTMLAttributes<HTMLHeadingElement>) => (
4233
<MdHeading1
4334
className="font-monospace uppercase max-lg:text-[1.75rem]"
@@ -117,7 +108,10 @@ export const TutorialLayout = ({
117108

118109
return (
119110
<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+
>
121115
<Heading1>{frontmatter.title}</Heading1>
122116
<TutorialMetadata frontmatter={frontmatter} timeToRead={timeToRead} />
123117
<TableOfContents
@@ -133,7 +127,7 @@ export const TutorialLayout = ({
133127
lastEditLocaleTimestamp={lastEditLocaleTimestamp}
134128
/>
135129
<FeedbackCard />
136-
</ContentContainer>
130+
</MainArticle>
137131
{tocItems && (
138132
<TableOfContents
139133
items={tocItems}

0 commit comments

Comments
 (0)