diff --git a/ui/src/Components/FaviconBadge/index.js b/ui/src/Components/FaviconBadge/index.js
index f827520a9..40fdecd81 100644
--- a/ui/src/Components/FaviconBadge/index.js
+++ b/ui/src/Components/FaviconBadge/index.js
@@ -5,10 +5,12 @@ import { observer } from "mobx-react";
import Favico from "favico.js";
+import { AlertStore } from "Stores/AlertStore";
+
const FaviconBadge = observer(
class FaviconBadge extends Component {
static propTypes = {
- alertStore: PropTypes.object.isRequired
+ alertStore: PropTypes.instanceOf(AlertStore).isRequired
};
constructor(props) {
diff --git a/ui/src/Components/FetchPauser/index.js b/ui/src/Components/FetchPauser/index.js
index 78be3973a..38af91d8e 100644
--- a/ui/src/Components/FetchPauser/index.js
+++ b/ui/src/Components/FetchPauser/index.js
@@ -3,11 +3,13 @@ import PropTypes from "prop-types";
import { inject } from "mobx-react";
+import { AlertStore } from "Stores/AlertStore";
+
const FetchPauser = inject("alertStore")(
class FetchPauser extends Component {
static propTypes = {
children: PropTypes.any,
- alertStore: PropTypes.object.isRequired
+ alertStore: PropTypes.instanceOf(AlertStore).isRequired
};
componentDidMount() {
diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/AlertMenu.js b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/AlertMenu.js
index 68bbe5832..b38527c28 100644
--- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/AlertMenu.js
+++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/AlertMenu.js
@@ -15,6 +15,8 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCaretDown } from "@fortawesome/free-solid-svg-icons/faCaretDown";
import { faBellSlash } from "@fortawesome/free-solid-svg-icons/faBellSlash";
+import { APIAlert, APIGroup } from "Models/API";
+import { SilenceFormStore } from "Stores/SilenceFormStore";
import { FetchPauser } from "Components/FetchPauser";
import { DropdownSlide } from "Components/Animations/DropdownSlide";
@@ -71,17 +73,17 @@ MenuContent.propTypes = {
popperPlacement: PropTypes.string,
popperRef: PropTypes.func,
popperStyle: PropTypes.object,
- group: PropTypes.object.isRequired,
- alert: PropTypes.object.isRequired,
+ group: APIGroup.isRequired,
+ alert: APIAlert.isRequired,
afterClick: PropTypes.func.isRequired
};
const AlertMenu = observer(
class AlertMenu extends Component {
static propTypes = {
- group: PropTypes.object.isRequired,
- alert: PropTypes.object.isRequired,
- silenceFormStore: PropTypes.object.isRequired
+ group: APIGroup.isRequired,
+ alert: APIAlert.isRequired,
+ silenceFormStore: PropTypes.instanceOf(SilenceFormStore).isRequired
};
collapse = observable(
diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap
index 9ab14ce9b..d2bcd90db 100644
--- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap
+++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/__snapshots__/index.test.js.snap
@@ -42,7 +42,7 @@ exports[` matches snapshot with showAlertmanagers=false showReceiver=fa
hidden
-