diff --git a/next.config.js b/next.config.js
index 4b0478c..51c209a 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,9 +1,9 @@
const NEXT_BASE_PATH = process.env.NEXT_ASSET_PREFIX || "";
module.exports = require("@next/mdx")({
- extension: /\.mdx?$/
+ extension: /\.mdx?$/,
})({
pageExtensions: ["ts", "tsx", "md", "mdx"],
assetPrefix: NEXT_BASE_PATH,
- env: { NEXT_BASE_PATH }
+ env: { NEXT_BASE_PATH },
});
diff --git a/pages/_document.tsx b/pages/_document.tsx
index a95ed23..bde136e 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -5,7 +5,7 @@ import Document, {
Html,
Head,
Main,
- NextScript
+ NextScript,
} from "next/document";
import { ServerStyleSheets } from "@material-ui/styles";
import { theme } from "../styles/MainTheme";
@@ -15,12 +15,12 @@ export default class extends Document {
const originalRenderPage = ctx.renderPage;
ctx.renderPage = () =>
originalRenderPage({
- enhanceApp: App => props => sheets.collect(
{JSON.stringify({ path, ...query }, null, " ")}; } diff --git a/pages/todo.tsx b/pages/todo.tsx index 87b72a3..48ec06c 100644 --- a/pages/todo.tsx +++ b/pages/todo.tsx @@ -17,7 +17,7 @@ type Action = const initialState: State = { id: 0, - todo: new Map() + todo: new Map(), }; function reducer(state: State, action: Action) { @@ -44,7 +44,7 @@ export default () => { if (body.length === 0) return; dispatch({ type: "add", - body + body, }); }, [dispatch] diff --git a/routes.ts b/routes.ts index 43b03c3..3403188 100644 --- a/routes.ts +++ b/routes.ts @@ -3,6 +3,6 @@ import { Home, Info } from "@material-ui/icons"; const routes = [ { pathname: "/", icon: createElement(Home) }, - { pathname: "/about", icon: createElement(Info) } + { pathname: "/about", icon: createElement(Info) }, ]; export default routes; diff --git a/styles/MainTheme.tsx b/styles/MainTheme.tsx index 2adff78..2097321 100644 --- a/styles/MainTheme.tsx +++ b/styles/MainTheme.tsx @@ -23,21 +23,21 @@ const isValidURL = (url: string) => { export const theme = createMuiTheme({ palette: { primary: { - main: orange[900] + main: orange[900], }, secondary: { - main: teal[400] - } + main: teal[400], + }, }, typography: { - fontFamily: "sans-serif" - } + fontFamily: "sans-serif", + }, }); export const components: { [key in keyof HTMLElementTagNameMap]?: React.FC