aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/common/alert-service.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-11 23:15:10 +0800
committercrupest <crupest@outlook.com>2020-06-11 23:15:10 +0800
commit64c4376ed388af106c1de5ec8bd1d1743950a27e (patch)
treec1b4d3f4b83f5114febecb6f2e2cc6e982ec97f2 /Timeline/ClientApp/src/app/common/alert-service.ts
parent93ce8560fa19c3a91de99643fdbbe4f895a47b84 (diff)
downloadtimeline-64c4376ed388af106c1de5ec8bd1d1743950a27e.tar.gz
timeline-64c4376ed388af106c1de5ec8bd1d1743950a27e.tar.bz2
timeline-64c4376ed388af106c1de5ec8bd1d1743950a27e.zip
feat(front): Application upgrade ui.
Diffstat (limited to 'Timeline/ClientApp/src/app/common/alert-service.ts')
-rw-r--r--Timeline/ClientApp/src/app/common/alert-service.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/Timeline/ClientApp/src/app/common/alert-service.ts b/Timeline/ClientApp/src/app/common/alert-service.ts
index 6d3f8af8..79eecc82 100644
--- a/Timeline/ClientApp/src/app/common/alert-service.ts
+++ b/Timeline/ClientApp/src/app/common/alert-service.ts
@@ -1,8 +1,10 @@
+import React from 'react';
import pull from 'lodash/pull';
export interface AlertInfo {
type?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
- message: string;
+ message: string | React.FC<unknown> | { type: 'i18n'; key: string };
+ dismissTime?: number | 'never';
}
export interface AlertInfoEx extends AlertInfo {