Skip to content

Commit

Permalink
fix missing JSX namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Dec 8, 2024
1 parent 0f68a23 commit 0dc3a1d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { MouseTrail } from "react-webgl-trails";
const inter = Inter({ subsets: ["latin"] });

/** Root layout. */
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" suppressHydrationWarning>
<body className={inter.className}>
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const metadata = {
};

/** next.js landing page */
export default function Page(): JSX.Element {
export default function Page() {
return (
<LandingPage title="Next.js Example">
<Demo />
Expand Down
2 changes: 1 addition & 1 deletion examples/remix/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const meta: MetaFunction = () => [
export const links: LinksFunction = () => [{ rel: "stylesheet", href: styles }];

/** Remix app root */
export default function App(): JSX.Element {
export default function App() {
return (
<html lang="en">
<head>
Expand Down
2 changes: 1 addition & 1 deletion examples/remix/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Demo } from "@repo/shared";
import { LandingPage } from "@repo/shared/dist/server";

/** Remix App */
export default function Index(): JSX.Element {
export default function Index() {
return (
<LandingPage title="Remix Example">
<Demo />
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Core } from "nextjs-darkmode";
import { Demo, Header } from "@repo/shared";

/** Vite App */
function App(): JSX.Element {
function App() {
return (
<Layout>
<Core t="background .5s" />
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/client/header/theme-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Switch } from "nextjs-darkmode/switch";
import styles from "./header.module.scss";

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

0 comments on commit 0dc3a1d

Please sign in to comment.