mirror of
https://github.com/kou029w/_.git
synced 2025-02-07 09:38:46 +00:00
prefetch
This commit is contained in:
parent
9b63fc5230
commit
d775ea9d73
1 changed files with 2 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, { ReactElement } from "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";
|
||||||
|
@ -37,7 +37,7 @@ export const components = {
|
||||||
h5: (props: {}) => <Typography variant="h5" {...props} />,
|
h5: (props: {}) => <Typography variant="h5" {...props} />,
|
||||||
h6: (props: {}) => <Typography variant="h6" {...props} />,
|
h6: (props: {}) => <Typography variant="h6" {...props} />,
|
||||||
a: ({ href, ...props }: { href: string }) => (
|
a: ({ href, ...props }: { href: string }) => (
|
||||||
<Link href={href}>
|
<Link prefetch href={href}>
|
||||||
<MuiLink variant="body1" href={href} {...props} />
|
<MuiLink variant="body1" href={href} {...props} />
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue