aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/common/AlertHost.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-24 23:51:20 +0800
committercrupest <crupest@outlook.com>2020-08-24 23:51:20 +0800
commit42820d6152131b5e2931bba82ab9e2976e2181f3 (patch)
tree1be3bd365ff167225092d772e6385cf4d9640e60 /Timeline/ClientApp/src/app/common/AlertHost.tsx
parentde1d582bf2ed7062fd400459f30d463d47ef9982 (diff)
downloadtimeline-42820d6152131b5e2931bba82ab9e2976e2181f3.tar.gz
timeline-42820d6152131b5e2931bba82ab9e2976e2181f3.tar.bz2
timeline-42820d6152131b5e2931bba82ab9e2976e2181f3.zip
...
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