Skip to content

Commit 9c06dfc

Browse files
committed
Fix typing
1 parent 886db24 commit 9c06dfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/components/layout.tsx renamed to web/components/Layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
useColorModeValue,
1717
useDisclosure,
1818
} from "@chakra-ui/react";
19-
import { ReactNode, useState } from "react";
19+
import { useState } from "react";
2020

2121
interface Props {
2222
children: React.ReactNode;
@@ -46,7 +46,7 @@ const NavLink = ({ label, url }: { url: string; label: string }) => {
4646
);
4747
};
4848

49-
export default function Layout({ children }: { children: ReactNode }) {
49+
export default function Layout({ children } : Props) {
5050
const { isOpen, onOpen, onClose } = useDisclosure();
5151
const [isAuthed, setIsAuthed] = useState(false);
5252

web/pages/_app.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import Layout from "@/components/Layout";
12
import "@/styles/globals.css";
23
import { ChakraProvider } from "@chakra-ui/react";
34
import type { AppProps } from "next/app";
4-
import Layout from "../components/Layout";
55

66
export default function App({ Component, pageProps }: AppProps) {
77
return (

0 commit comments

Comments
 (0)