diff options
author | crupest <crupest@outlook.com> | 2020-08-24 23:51:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-24 23:51:20 +0800 |
commit | 8e297d2b659f447814e07676423e973f0f41e560 (patch) | |
tree | f35966a01abb5485c72af3ec4f727cd878ee6071 /Timeline/ClientApp/src/app/common/AlertHost.tsx | |
parent | cc0cc154b9506d1961d08cb29fbc29ad815bad69 (diff) | |
download | timeline-8e297d2b659f447814e07676423e973f0f41e560.tar.gz timeline-8e297d2b659f447814e07676423e973f0f41e560.tar.bz2 timeline-8e297d2b659f447814e07676423e973f0f41e560.zip |
...
Diffstat (limited to 'Timeline/ClientApp/src/app/common/AlertHost.tsx')
-rw-r--r-- | Timeline/ClientApp/src/app/common/AlertHost.tsx | 4 |
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 |