make rollbar props optional & export extension point

This commit is contained in:
Andrew Thauer
2021-02-03 10:54:44 -05:00
parent 9d6ef14bcd
commit e934428a1c
3 changed files with 7 additions and 3 deletions
@@ -21,7 +21,7 @@ import { RollbarProject } from '../RollbarProject/RollbarProject';
type Props = {
/** @deprecated The entity is now grabbed from context instead */
entity: Entity;
entity?: Entity;
};
export const EntityPageRollbar = (_props: Props) => {
+1 -1
View File
@@ -28,7 +28,7 @@ export const isPluginApplicableToEntity = (entity: Entity) =>
type Props = {
/** @deprecated The entity is now grabbed from context instead */
entity: Entity;
entity?: Entity;
};
export const Router = (_props: Props) => {
+5 -1
View File
@@ -22,4 +22,8 @@ export {
Router,
} from './components/Router';
export { ROLLBAR_ANNOTATION } from './constants';
export { rollbarPlugin as plugin, rollbarPlugin } from './plugin';
export {
EntityRollbarContent,
rollbarPlugin as plugin,
rollbarPlugin,
} from './plugin';