2019-01-06 01:16:29 +00:00
|
|
|
import React from 'react';
|
2019-01-04 02:33:13 +00:00
|
|
|
import * as Sentry from '@sentry/browser';
|
|
|
|
|
2019-01-06 01:16:29 +00:00
|
|
|
import Layout from 'components/Layout';
|
|
|
|
|
2019-01-04 02:33:13 +00:00
|
|
|
import 'site.css';
|
|
|
|
|
|
|
|
export const onClientEntry = () => {
|
|
|
|
Sentry.getCurrentHub().getClient().getOptions().enabled =
|
|
|
|
(navigator.doNotTrack !== '1' && window.doNotTrack !== '1');
|
|
|
|
};
|
2019-01-06 01:16:29 +00:00
|
|
|
|
|
|
|
// eslint-disable-next-line react/prop-types
|
|
|
|
export const wrapPageElement = ({ element }) => {
|
|
|
|
return <Layout>{ element }</Layout>;
|
|
|
|
};
|