-
Notifications
You must be signed in to change notification settings - Fork 3
/
_app.js
57 lines (50 loc) · 1.61 KB
/
_app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React from 'react';
import App from 'next/app';
import 'assets/css/App.css';
import theme from 'theme';
import { MuiThemeProvider } from '@material-ui/core';
import CssBaseline from '@material-ui/core/CssBaseline';
import NextSeo from 'next-seo';
import openGraph from 'assets/images/openGraph.png';
const SEO_METATAGS = {
title: 'Promise Tracker App',
description:
'PromiseTracker is a platform-based promise tracker where Kenyan citizens can track various promises made by governors in their manifestos and during the campaigns leading up to the 2017 general election',
openGraph: {
type: 'website',
locale: 'en_IE',
url: 'https://promisetracker.codeforafrica.org/',
title: 'Promise tracker',
description:
'PromiseTracker, is a tool to help journalists and civil society watchdogs more easily track campaign promises and other political / government pledges',
image: { openGraph },
site_name: 'promise-tracker',
imageWidth: 1200,
imageHeight: 1200
},
twitter: {
handle: '@Code4Africa'
}
};
class PromiseTrackerApp extends App {
componentDidMount() {
// Remove the server-side injected CSS.
const jssStyles = document.querySelector('#jss-server-side');
if (jssStyles) {
jssStyles.parentElement.removeChild(jssStyles);
}
}
render() {
const { Component, pageProps } = this.props;
return (
<>
<MuiThemeProvider theme={theme}>
<CssBaseline />
<NextSeo config={SEO_METATAGS} />
<Component {...pageProps} />
</MuiThemeProvider>
</>
);
}
}
export default PromiseTrackerApp;