Skip to content

Commit 37ba83f

Browse files
committed
fix: JSX namespace missing
1 parent d2206f4 commit 37ba83f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const md = `## Automatically Detect and Add Hyperlinks to Your Markdown Content
4848
https://github.com/react18-tools/react-markdown-autolink
4949
`;
5050

51-
export default function Page(): JSX.Element {
51+
export default function Page() {
5252
return <Markdown>{autoLinkMd(md)}</Markdown>;
5353
}
5454
```

examples/nextjs/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Particles } from "webgl-generative-particles/react";
1111
const inter = Inter({ subsets: ["latin"] });
1212

1313
/** Root layout. */
14-
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
14+
export default function RootLayout({ children }: { children: React.ReactNode }) {
1515
return (
1616
<html lang="en" suppressHydrationWarning>
1717
<body className={inter.className}>

examples/nextjs/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const md = `## Automatically Detect and Add Hyperlinks to Your Markdown Content
1010
https://github.com/react18-tools/react-markdown-autolink
1111
`;
1212
/** next.js landing page */
13-
export default function Page(): JSX.Element {
13+
export default function Page() {
1414
return (
1515
<LandingPage title="Next.js Example">
1616
<Markdown>{autoLinkMd(md)}</Markdown>

examples/vite/src/app/index.tsx

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

99
/** Vite App */
10-
function App(): JSX.Element {
10+
function App() {
1111
const { setLoading } = useLoader();
1212
const handleClick = useCallback(() => setLoading(true), []);
1313
return (

lib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const md = `## Automatically Detect and Add Hyperlinks to Your Markdown Content
4848
https://github.com/react18-tools/react-markdown-autolink
4949
`;
5050

51-
export default function Page(): JSX.Element {
51+
export default function Page() {
5252
return <Markdown>{autoLinkMd(md)}</Markdown>;
5353
}
5454
```

packages/shared/src/client/header/theme-switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Switch } from "nextjs-darkmode/switch";
55
import styles from "./header.module.scss";
66

77
/** This is a wrapper around `nextjs-darkmode's ColorSwitch component to improve mobile view. */
8-
export default function ThemeSwitch(): JSX.Element {
8+
export default function ThemeSwitch() {
99
const { mode } = useMode();
1010
return (
1111
<Switch className={styles.themeswitch}>

0 commit comments

Comments
 (0)