Skip to content

Commit eb3c391

Browse files
committed
fix: missing JSX namespace
1 parent e1b4b8d commit eb3c391

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/nextjs/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Inter } from "next/font/google";
88
const inter = Inter({ subsets: ["latin"] });
99

1010
/** Root layout. */
11-
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
11+
export default function RootLayout({ children }: { children: React.ReactNode }) {
1212
return (
1313
<html lang="en">
1414
<body className={inter.className}>

examples/nextjs/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const metadata = {
66
};
77

88
/** next.js landing page */
9-
export default function Page(): JSX.Element {
9+
export default function Page() {
1010
return (
1111
<LandingPage title="Next.js Example">
1212
<Demo />

examples/vite/src/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Header } from "@repo/shared";
55
import { Core } from "nextjs-darkmode";
66

77
/** Vite App */
8-
function App(): JSX.Element {
8+
function App() {
99
return (
1010
<Layout>
1111
<Core />

0 commit comments

Comments
 (0)