-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-browser.js
48 lines (40 loc) · 1.06 KB
/
gatsby-browser.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
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
import PropTypes from 'prop-types';
import React from 'react';
import SwaggerUI from 'swagger-ui';
window.SwaggerUI = SwaggerUI;
// class SessionCheck extends React.Component {
// constructor(props) {
// super(props);
// this.state = {
// loading: true,
// };
// }
// componentDidMount() {
// }
// handleCheckSession = () => {
// this.setState({ loading: false });
// };
// render() {
// const { loading } = this.state;
// const { children } = this.props;
// return loading === false && <React.Fragment>{children}</React.Fragment>;
// }
// }
// SessionCheck.propTypes = {
// children: PropTypes.oneOfType([
// PropTypes.arrayOf(PropTypes.node),
// PropTypes.node,
// ]).isRequired,
// };
// const wrapRootElement = ({ element }) => {
// return <SessionCheck>{element}</SessionCheck>;
// };
// wrapRootElement.propTypes = {
// element: PropTypes.node.isRequired,
// };
// export default wrapRootElement;