Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Initial setup apollo on client #393

Merged
merged 16 commits into from
Aug 2, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix next error
  • Loading branch information
Zeko369 committed Aug 2, 2020
commit 4e4d4fe9a0c4e721a29c56086316d4e5e18110f2
6 changes: 6 additions & 0 deletions client/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export default class MyApp extends App {
<>
<Head>
<title>Chapter</title>
<meta charSet="utf-8" />
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
/>
<meta name="theme-color" content={theme.palette.primary.main} />
</Head>
<Provider store={store}>
<MaterialUIThemeProvider theme={theme}>
Expand Down
9 changes: 0 additions & 9 deletions client/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import * as React from 'react';
import { ServerStyleSheets } from '@material-ui/core/styles';
import Document, { Head, Main, NextScript } from 'next/document';

import theme from '../styles/theme';

export default class MyDocument extends Document {
static async getInitialProps(ctx: any) {
const materialUISheet = new ServerStyleSheets();
Expand Down Expand Up @@ -34,13 +32,6 @@ export default class MyDocument extends Document {
return (
<html lang="en">
<Head>
<meta charSet="utf-8" />
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
/>
{/* PWA primary color */}
<meta name="theme-color" content={theme.palette.primary.main} />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
Expand Down