forked from monzo/progression-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml.js
More file actions
43 lines (41 loc) · 1.18 KB
/
Copy pathhtml.js
File metadata and controls
43 lines (41 loc) · 1.18 KB
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
// @flow
import React from 'react'
type Props = {
htmlAttributes: Object,
headComponents: Array<*>,
bodyAttributes: Object,
preBodyComponents: Array<*>,
body: string,
postBodyComponents: Array<*>,
}
// WARN: This is a lightly edited gatsby config file, shouldn't be edited unless it *really* has to.
export default class HTML extends React.Component<Props> {
render() {
return (
<html {...this.props.htmlAttributes}>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover, shrink-to-fit=no"
/>
<link
href="https://monzo.com/static/css/monzo-framework.min.css"
rel="stylesheet"
/>
{this.props.headComponents}
</head>
<body {...this.props.bodyAttributes}>
{this.props.preBodyComponents}
<div
key={`body`}
id="___gatsby"
dangerouslySetInnerHTML={{ __html: this.props.body }}
/>
{this.props.postBodyComponents}
</body>
</html>
)
}
}