Files
TheGame/packages/web/pages/_document.tsx
Damjan Čorić 9c7feeb611 switch to MetaLink for edit profile (#817)
* switch to MetaLink for edit profile

* add link to edit profile in mobie view

* add slash

* add player menu

* switch to svg icons

* switch to exo2 font

* align profile menu dropdown

* fix player menu alignment

* it was View Profile not Edit Profile

* remove arrow down to open player menu

* use hook to get disconnect method

* truncate pSeedBalance

* remove unnecessary props
2021-09-15 16:01:40 +02:00

39 lines
927 B
TypeScript

import Document, {
DocumentContext,
DocumentInitialProps,
Head,
Html,
Main,
NextScript,
} from 'next/document';
class MetaDocument extends Document {
static async getInitialProps(
ctx: DocumentContext,
): Promise<DocumentInitialProps> {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render(): JSX.Element {
return (
<Html>
<Head>
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Sans:wght@400;700&family=Press+Start+2P&family=Exo+2:ital,wght@0,400;0,500;0,700;1,400&display=swap"
rel="stylesheet"
/>
<link rel="shortcut icon" href="/favicon.png" />
<meta charSet="UTF-8" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MetaDocument;