From 962eb6ef3096dc90149a286190096a99496dd90a Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 14 Feb 2021 16:41:40 +0800 Subject: refactor: Enhance code in alert. --- FrontEnd/src/app/services/alert.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'FrontEnd/src/app/services/alert.ts') 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 | { type: "i18n"; key: string }; + message: React.FC | I18nText; dismissTime?: number | "never"; } -- cgit v1.2.3