From e90a1f65ce9d9dbef11d95bcc918a5f970d71c34 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 24 Apr 2019 00:23:29 +0900 Subject: [PATCH] =?UTF-8?q?h1=E3=81=A7=E3=82=BF=E3=82=A4=E3=83=88=E3=83=AB?= =?UTF-8?q?=E3=82=92=E6=9B=B8=E3=81=8D=E6=8F=9B=E3=81=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/MainTheme.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/styles/MainTheme.tsx b/styles/MainTheme.tsx index 06ce16f..064f42e 100644 --- a/styles/MainTheme.tsx +++ b/styles/MainTheme.tsx @@ -9,7 +9,7 @@ import { } from "@material-ui/core"; import { orange, teal } from "@material-ui/core/colors"; import { MDXProvider } from "@mdx-js/tag"; -import React from "react"; +import React, { ReactNode } from "react"; import Head from "next/head"; import Link from "next/link"; import TopAppBar from "./TopAppBar"; @@ -30,7 +30,14 @@ export const theme = createMuiTheme({ }); export const components = { - h1: (props: {}) => , + h1: (props: { children: ReactNode }) => ( + <> + + {props.children} + + + + ), h2: (props: {}) => , h3: (props: {}) => , h4: (props: {}) => ,