File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const md = `## Automatically Detect and Add Hyperlinks to Your Markdown Content
48
48
https://github.com/react18-tools/react-markdown-autolink
49
49
` ;
50
50
51
- export default function Page(): JSX . Element {
51
+ export default function Page() {
52
52
return <Markdown >{autoLinkMd(md )}< / Markdown > ;
53
53
}
54
54
```
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { Particles } from "webgl-generative-particles/react";
11
11
const inter = Inter ( { subsets : [ "latin" ] } ) ;
12
12
13
13
/** Root layout. */
14
- export default function RootLayout ( { children } : { children : React . ReactNode } ) : JSX . Element {
14
+ export default function RootLayout ( { children } : { children : React . ReactNode } ) {
15
15
return (
16
16
< html lang = "en" suppressHydrationWarning >
17
17
< body className = { inter . className } >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const md = `## Automatically Detect and Add Hyperlinks to Your Markdown Content
10
10
https://github.com/react18-tools/react-markdown-autolink
11
11
` ;
12
12
/** next.js landing page */
13
- export default function Page ( ) : JSX . Element {
13
+ export default function Page ( ) {
14
14
return (
15
15
< LandingPage title = "Next.js Example" >
16
16
< Markdown > { autoLinkMd ( md ) } </ Markdown >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { Core } from "nextjs-darkmode";
7
7
import { Demo , Header } from "@repo/shared" ;
8
8
9
9
/** Vite App */
10
- function App ( ) : JSX . Element {
10
+ function App ( ) {
11
11
const { setLoading } = useLoader ( ) ;
12
12
const handleClick = useCallback ( ( ) => setLoading ( true ) , [ ] ) ;
13
13
return (
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const md = `## Automatically Detect and Add Hyperlinks to Your Markdown Content
48
48
https://github.com/react18-tools/react-markdown-autolink
49
49
` ;
50
50
51
- export default function Page(): JSX . Element {
51
+ export default function Page() {
52
52
return <Markdown >{autoLinkMd(md )}< / Markdown > ;
53
53
}
54
54
```
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Switch } from "nextjs-darkmode/switch";
5
5
import styles from "./header.module.scss" ;
6
6
7
7
/** 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 ( ) {
9
9
const { mode } = useMode ( ) ;
10
10
return (
11
11
< Switch className = { styles . themeswitch } >
You can’t perform that action at this time.
0 commit comments