Skip to content

Commit d629c44

Browse files
committed
Move component
1 parent e628d19 commit d629c44

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/app/course/confirmed/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Logo } from "@/components/logo";
2-
import { GridContainer } from "../layout";
2+
import { GridContainer } from "../grid-container";
33

44
export default async function Course() {
55
return (

src/app/course/grid-container.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import BaseContainer from "@/components/grid-container";
2+
3+
export function GridContainer({ children }: { children: React.ReactNode }) {
4+
return (
5+
<BaseContainer>
6+
<div className="px-0 py-2 sm:px-2">{children}</div>
7+
</BaseContainer>
8+
);
9+
}

src/app/course/layout.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
import BaseContainer from "@/components/grid-container";
21
import React from "react";
32

4-
export function GridContainer({ children }: { children: React.ReactNode }) {
5-
return (
6-
<BaseContainer>
7-
<div className="px-0 py-2 sm:px-2">{children}</div>
8-
</BaseContainer>
9-
);
10-
}
11-
123
export default async function Layout({ children }: React.PropsWithChildren) {
134
return (
145
<div className="max-w-screen overflow-x-hidden [html:has(&)]:bg-gray-950">

src/app/course/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Logo } from "@/components/logo";
22
import { HeroActions, SignUpForm } from "./call-to-action";
3-
import { GridContainer } from "./layout";
3+
import { GridContainer } from "./grid-container";
44

55
import type { Metadata } from "next";
66

src/app/course/subscribed/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Logo } from "@/components/logo";
2-
import { GridContainer } from "../layout";
2+
import { GridContainer } from "../grid-container";
33

44
export default async function Course() {
55
return (

0 commit comments

Comments
 (0)