aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/services/alert.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-14 16:41:40 +0800
committercrupest <crupest@outlook.com>2021-02-14 16:41:40 +0800
commit962eb6ef3096dc90149a286190096a99496dd90a (patch)
tree167d8ece87f9457f3c7b9e89348087ec6298569e /FrontEnd/src/app/services/alert.ts
parent5f7c012f6815a7306448b715bec1975494acfd7f (diff)
downloadtimeline-962eb6ef3096dc90149a286190096a99496dd90a.tar.gz
timeline-962eb6ef3096dc90149a286190096a99496dd90a.tar.bz2
timeline-962eb6ef3096dc90149a286190096a99496dd90a.zip
refactor: Enhance code in alert.
Diffstat (limited to 'FrontEnd/src/app/services/alert.ts')
-rw-r--r--FrontEnd/src/app/services/alert.ts4
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";
}