diff options
author | crupest <crupest@outlook.com> | 2021-06-26 19:13:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-26 19:13:19 +0800 |
commit | a168336c0761b263ee5371218cbf6da236c0acce (patch) | |
tree | fbd965f152c1129cd4692e73112c2557e755cddb /FrontEnd/src/views/common/alert/AlertHost.tsx | |
parent | b468fd9a0119b97d1ecc1090a028975e917aa75f (diff) | |
download | timeline-a168336c0761b263ee5371218cbf6da236c0acce.tar.gz timeline-a168336c0761b263ee5371218cbf6da236c0acce.tar.bz2 timeline-a168336c0761b263ee5371218cbf6da236c0acce.zip |
...
Diffstat (limited to 'FrontEnd/src/views/common/alert/AlertHost.tsx')
-rw-r--r-- | FrontEnd/src/views/common/alert/AlertHost.tsx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/FrontEnd/src/views/common/alert/AlertHost.tsx b/FrontEnd/src/views/common/alert/AlertHost.tsx index 949be7ed..21b9882d 100644 --- a/FrontEnd/src/views/common/alert/AlertHost.tsx +++ b/FrontEnd/src/views/common/alert/AlertHost.tsx @@ -1,7 +1,6 @@ import React from "react"; import without from "lodash/without"; import { useTranslation } from "react-i18next"; -import { Alert } from "react-bootstrap"; import { alertService, @@ -52,13 +51,7 @@ export const AutoCloseAlert: React.FC<AutoCloseAlertProps> = (props) => { }; return ( - <Alert - className="m-3" - variant={alert.type ?? "primary"} - onClick={cancelTimer} - onClose={close} - dismissible - > + <div className="m-3" onClick={cancelTimer}> {(() => { const { message } = alert; if (typeof message === "function") { @@ -66,7 +59,7 @@ export const AutoCloseAlert: React.FC<AutoCloseAlertProps> = (props) => { return <Message />; } else return convertI18nText(message, t); })()} - </Alert> + </div> ); }; |