Remove bugsnag (#19)

This commit is contained in:
Manuel Bouza
2019-05-24 13:34:15 +02:00
committed by Tobias Miesel
parent 23c9af90b3
commit fd04d6bf6c
9 changed files with 67 additions and 616 deletions

View File

@@ -5,7 +5,6 @@ import Bubble from "./components/Bubble"
import Popup from "components/Popup"
import { createServiceFinder } from "utils/urlMatcher"
import remoteServices from "./remoteServices"
import { ErrorBoundary } from "utils/notifier"
import { ContentMessenger } from "utils/messaging"
import "../css/content.scss"
@@ -35,26 +34,24 @@ chrome.runtime.onConnect.addListener(function(port) {
}
ReactDOM.render(
<ErrorBoundary>
<Transition
native
items={service}
from={{ opacity: "0" }}
enter={{ opacity: "1" }}
leave={{ opacity: "0" }}
config={config.stiff}
>
{service =>
service &&
// eslint-disable-next-line react/display-name
(props => (
<animated.div className="moco-bx-bubble" style={{ ...props, ...service.position }}>
<Bubble key={service.url} bookedHours={bookedHours} />
</animated.div>
))
}
</Transition>
</ErrorBoundary>,
<Transition
native
items={service}
from={{ opacity: "0" }}
enter={{ opacity: "1" }}
leave={{ opacity: "0" }}
config={config.stiff}
>
{service =>
service &&
// eslint-disable-next-line react/display-name
(props => (
<animated.div className="moco-bx-bubble" style={{ ...props, ...service.position }}>
<Bubble key={service.url} bookedHours={bookedHours} />
</animated.div>
))
}
</Transition>,
document.getElementById("moco-bx-root"),
)
}
@@ -67,9 +64,7 @@ chrome.runtime.onConnect.addListener(function(port) {
}
ReactDOM.render(
<ErrorBoundary>
<Popup ref={popupRef} {...payload} onRequestClose={closePopup} />
</ErrorBoundary>,
<Popup ref={popupRef} {...payload} onRequestClose={closePopup} />,
document.getElementById("moco-bx-popup-root"),
)
}