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: {}) => ,