aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/common/AlertHost.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/ClientApp/src/app/common/AlertHost.tsx')
-rw-r--r--Timeline/ClientApp/src/app/common/AlertHost.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/ClientApp/src/app/common/AlertHost.tsx b/Timeline/ClientApp/src/app/common/AlertHost.tsx
index e22354fa..bfcf5c00 100644
--- a/Timeline/ClientApp/src/app/common/AlertHost.tsx
+++ b/Timeline/ClientApp/src/app/common/AlertHost.tsx
@@ -2,6 +2,7 @@ import React, { useCallback } from "react";
import { Alert } from "reactstrap";
import without from "lodash/without";
import concat from "lodash/concat";
+import { useTranslation } from "react-i18next";
import {
alertService,
@@ -9,7 +10,6 @@ import {
kAlertHostId,
AlertInfo,
} from "./alert-service";
-import { useTranslation } from "react-i18next";
interface AutoCloseAlertProps {
alert: AlertInfo;
@@ -56,7 +56,7 @@ interface AlertInfoExEx extends AlertInfoEx {
close: () => void;
}
-export const AlertHost: React.FC = () => {
+const AlertHost: React.FC = () => {
const [alerts, setAlerts] = React.useState<AlertInfoExEx[]>([]);
// react guarantee that state setters are stable, so we don't need to add it to dependency list