diff --git a/components/layout/index.tsx b/components/layout/index.tsx index 72face22d..d26e1d117 100644 --- a/components/layout/index.tsx +++ b/components/layout/index.tsx @@ -1,7 +1,6 @@ import { Flex, useToast } from "@chakra-ui/react"; import { t } from "@lingui/macro"; import MyContainer from "components/common/MyContainer"; -import { AppProps } from "next/app"; import { useState } from "react"; import { SWRConfig } from "swr"; import Banner from "./Banner"; @@ -11,7 +10,7 @@ import TopNav from "./TopNav"; const DATE_KEYS = ["createdAt", "updatedAt"]; -const Layout = ({ Component, pageProps }: AppProps) => { +const Layout = ({ children }: { children: React.ReactNode }) => { const [errors, setErrors] = useState(new Set()); const toast = useToast(); @@ -47,9 +46,7 @@ const Layout = ({ Component, pageProps }: AppProps) => { - - - + {children}