From 509b8f8c51c565638fcf76f895b64a405ffddc45 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 12 Jun 2020 10:00:40 +0900 Subject: [PATCH] fix build error --- styles/MainTheme.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/styles/MainTheme.tsx b/styles/MainTheme.tsx index 67d6cb8..d3a360a 100644 --- a/styles/MainTheme.tsx +++ b/styles/MainTheme.tsx @@ -1,3 +1,4 @@ +import React, { ReactElement } from "react"; import { ThemeProvider } from "@material-ui/styles"; import { createMuiTheme } from "@material-ui/core/styles"; import { orange, teal } from "@material-ui/core/colors"; @@ -6,7 +7,6 @@ import MuiLink from "@material-ui/core/Link"; import Box from "@material-ui/core/Box"; import Container from "@material-ui/core/Container"; import { MDXProvider, ComponentDictionary } from "@mdx-js/react"; -import React from "react"; import Head from "next/head"; import Link from "next/link"; import TopAppBar from "./TopAppBar"; @@ -61,12 +61,12 @@ export const components: ComponentDictionary = { p: (props) => , }; -const MainTheme: React.FC = ({ children }) => ( +const MainTheme = (props: { children: ReactElement }) => ( - {children} + {props.children}