mirror of
https://github.com/kou029w/_.git
synced 2025-02-07 09:38:46 +00:00
h1でタイトルを書き換え
This commit is contained in:
parent
e33208d5d6
commit
e90a1f65ce
1 changed files with 9 additions and 2 deletions
|
@ -9,7 +9,7 @@ import {
|
||||||
} from "@material-ui/core";
|
} from "@material-ui/core";
|
||||||
import { orange, teal } from "@material-ui/core/colors";
|
import { orange, teal } from "@material-ui/core/colors";
|
||||||
import { MDXProvider } from "@mdx-js/tag";
|
import { MDXProvider } from "@mdx-js/tag";
|
||||||
import React from "react";
|
import React, { ReactNode } from "react";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import TopAppBar from "./TopAppBar";
|
import TopAppBar from "./TopAppBar";
|
||||||
|
@ -30,7 +30,14 @@ export const theme = createMuiTheme({
|
||||||
});
|
});
|
||||||
|
|
||||||
export const components = {
|
export const components = {
|
||||||
h1: (props: {}) => <Typography component="h1" variant="h3" {...props} />,
|
h1: (props: { children: ReactNode }) => (
|
||||||
|
<>
|
||||||
|
<Head>
|
||||||
|
<title>{props.children}</title>
|
||||||
|
</Head>
|
||||||
|
<Typography component="h1" variant="h3" {...props} />
|
||||||
|
</>
|
||||||
|
),
|
||||||
h2: (props: {}) => <Typography component="h2" variant="h4" {...props} />,
|
h2: (props: {}) => <Typography component="h2" variant="h4" {...props} />,
|
||||||
h3: (props: {}) => <Typography component="h3" variant="h5" {...props} />,
|
h3: (props: {}) => <Typography component="h3" variant="h5" {...props} />,
|
||||||
h4: (props: {}) => <Typography component="h4" variant="h6" {...props} />,
|
h4: (props: {}) => <Typography component="h4" variant="h6" {...props} />,
|
||||||
|
|
Loading…
Add table
Reference in a new issue