mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
fix build error
This commit is contained in:
parent
3a8a44755e
commit
509b8f8c51
1 changed files with 3 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import React, { ReactElement } from "react";
|
||||||
import { ThemeProvider } from "@material-ui/styles";
|
import { ThemeProvider } from "@material-ui/styles";
|
||||||
import { createMuiTheme } from "@material-ui/core/styles";
|
import { createMuiTheme } from "@material-ui/core/styles";
|
||||||
import { orange, teal } from "@material-ui/core/colors";
|
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 Box from "@material-ui/core/Box";
|
||||||
import Container from "@material-ui/core/Container";
|
import Container from "@material-ui/core/Container";
|
||||||
import { MDXProvider, ComponentDictionary } from "@mdx-js/react";
|
import { MDXProvider, ComponentDictionary } from "@mdx-js/react";
|
||||||
import React 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";
|
||||||
|
@ -61,12 +61,12 @@ export const components: ComponentDictionary = {
|
||||||
p: (props) => <Typography component="p" variant="body1" {...props} />,
|
p: (props) => <Typography component="p" variant="body1" {...props} />,
|
||||||
};
|
};
|
||||||
|
|
||||||
const MainTheme: React.FC = ({ children }) => (
|
const MainTheme = (props: { children: ReactElement }) => (
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<MDXProvider components={components}>
|
<MDXProvider components={components}>
|
||||||
<TopAppBar />
|
<TopAppBar />
|
||||||
<Box paddingTop={6}>
|
<Box paddingTop={6}>
|
||||||
<Container>{children}</Container>
|
<Container>{props.children}</Container>
|
||||||
</Box>
|
</Box>
|
||||||
</MDXProvider>
|
</MDXProvider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
|
|
Loading…
Add table
Reference in a new issue