Skip to content

Commit

Permalink
found typings for CleanLayout and HeaderFooterLayout - change backt t…
Browse files Browse the repository at this point in the history
…o tsx files - revert change to tsconfig
  • Loading branch information
Spencer-Sch committed Nov 14, 2023
1 parent c8a6bb4 commit 861f534
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
7 changes: 0 additions & 7 deletions packages/nextjs/components/layouts/CleanLayout.jsx

This file was deleted.

13 changes: 13 additions & 0 deletions packages/nextjs/components/layouts/CleanLayout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React, { ReactNode } from "react";

interface CleanLayoutProps {
children: ReactNode;
}

export default function CleanLayout({ children }: CleanLayoutProps) {
return (
<>
<main className="relative flex flex-col justify-center flex-1">{children}</main>
</>
);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import React, { ReactNode } from "react";
import { Footer } from "~~/components/Footer";
import { Header } from "~~/components/Header";

export default function HeaderFooterLayout({ children }) {
interface HeaderFooterLayoutProps {
children: ReactNode;
}

export default function HeaderFooterLayout({ children }: HeaderFooterLayoutProps) {
return (
<>
<Header />
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"~~/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.jsx"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

0 comments on commit 861f534

Please sign in to comment.