Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Katy DeCorah committed Jul 13, 2020
1 parent 37e289a commit 63aa1d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/components/analytics-shell/analytics-shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,20 @@ AnalyticsShell.defaultProps = {

AnalyticsShell.propTypes = {
children: PropTypes.node.isRequired,
/** Location object (often provided by Batfish), `pathname` is current page's relative path. */
location: PropTypes.shape({
pathname: PropTypes.string.isRequired
}).isRequired,
/** Production website domain. */
domain: PropTypes.string,
/** Customize [Sentry options](https://docs.sentry.io/error-reporting/configuration/?platform=browser). */
sentry: PropTypes.shape({
// Customize Sentry options: https://docs.sentry.io/error-reporting/configuration/?platform=browser
dsn: PropTypes.string
}),
webAnalytics: PropTypes.object, // Customize web-analytics options: https://github.com/mapbox/web-analytics
disableSentry: PropTypes.bool, // If true, Sentry will not initialize.
disableWebAnalytics: PropTypes.bool // If true, Mapbox analytics (initializeMapboxAnalytics) will not initialize.
/** Customize [web-analytics options](https://github.com/mapbox/web-analytics). */
webAnalytics: PropTypes.object,
/** If `true`, Sentry will not initialize. */
disableSentry: PropTypes.bool,
/** If `true`, Mapbox analytics (`initializeMapboxAnalytics`) will not initialize. */
disableWebAnalytics: PropTypes.bool
};
2 changes: 1 addition & 1 deletion src/components/analytics-shell/examples/basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
The AnalyticsShell adds [Sentry](https://docs.sentry.io/error-reporting/configuration/?platform=browser) and initializes [@mapbox/web-analytics](https://github.com/mapbox/web-analytics) from [docs-page-shell](https://github.com/mapbox/docs-page-shell#page-shell-scriptjs)
The AnalyticsShell adds [Sentry](https://docs.sentry.io/error-reporting/configuration/?platform=browser) and initializes [@mapbox/web-analytics](https://github.com/mapbox/web-analytics) from [docs-page-shell](https://github.com/mapbox/docs-page-shell#page-shell-scriptjs).
*/
import React from 'react';
import AnalyticsShell from '../analytics-shell';
Expand Down

0 comments on commit 63aa1d0

Please sign in to comment.