diff options
author | crupest <crupest@outlook.com> | 2021-02-14 16:41:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-14 16:41:40 +0800 |
commit | 647664af3408103681d4522b443f9baa4e6612af (patch) | |
tree | 43589bea4735b602f16eb0b9d40f5f58ce65aeae /FrontEnd/src/app/services | |
parent | 5a5f0e95404549c6dde17281619479573224f8d3 (diff) | |
download | timeline-647664af3408103681d4522b443f9baa4e6612af.tar.gz timeline-647664af3408103681d4522b443f9baa4e6612af.tar.bz2 timeline-647664af3408103681d4522b443f9baa4e6612af.zip |
refactor: Enhance code in alert.
Diffstat (limited to 'FrontEnd/src/app/services')
-rw-r--r-- | FrontEnd/src/app/services/alert.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FrontEnd/src/app/services/alert.ts b/FrontEnd/src/app/services/alert.ts index e4c0e653..b6d6be6e 100644 --- a/FrontEnd/src/app/services/alert.ts +++ b/FrontEnd/src/app/services/alert.ts @@ -1,9 +1,11 @@ import React from "react"; import pull from "lodash/pull"; +import { I18nText } from "@/common"; + export interface AlertInfo { type?: "primary" | "secondary" | "success" | "danger" | "warning" | "info"; - message: string | React.FC<unknown> | { type: "i18n"; key: string }; + message: React.FC<unknown> | I18nText; dismissTime?: number | "never"; } |