diff options
author | crupest <crupest@outlook.com> | 2023-09-21 23:49:12 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-09-21 23:49:12 +0800 |
commit | d477c7270c90b190ed82b13f48f39a05d83503d2 (patch) | |
tree | 572f74b2adc75247b9d1c9a8965e3de2559d4160 /FrontEnd/src/components/alert | |
parent | a8a8385cd959e4d9d57b8a35381d2851049c07ff (diff) | |
download | timeline-d477c7270c90b190ed82b13f48f39a05d83503d2.tar.gz timeline-d477c7270c90b190ed82b13f48f39a05d83503d2.tar.bz2 timeline-d477c7270c90b190ed82b13f48f39a05d83503d2.zip |
Fix #1394.
Diffstat (limited to 'FrontEnd/src/components/alert')
-rw-r--r-- | FrontEnd/src/components/alert/AlertHost.tsx | 4 | ||||
-rw-r--r-- | FrontEnd/src/components/alert/AlertService.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/FrontEnd/src/components/alert/AlertHost.tsx b/FrontEnd/src/components/alert/AlertHost.tsx index 59f8f27c..8dca42d5 100644 --- a/FrontEnd/src/components/alert/AlertHost.tsx +++ b/FrontEnd/src/components/alert/AlertHost.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from "react"; import classNames from "classnames"; -import { ThemeColor, useC, Text } from "../common"; +import { ThemeColor, useC, I18nText } from "../common"; import IconButton from "../button/IconButton"; import { alertService, AlertInfoWithId } from "./AlertService"; @@ -10,7 +10,7 @@ import "./alert.css"; interface AutoCloseAlertProps { color: ThemeColor; - message: Text; + message: I18nText; onDismiss?: () => void; onIn?: () => void; onOut?: () => void; diff --git a/FrontEnd/src/components/alert/AlertService.ts b/FrontEnd/src/components/alert/AlertService.ts index b9cda752..8e98cc4d 100644 --- a/FrontEnd/src/components/alert/AlertService.ts +++ b/FrontEnd/src/components/alert/AlertService.ts @@ -1,10 +1,10 @@ -import { ThemeColor, Text } from "../common"; +import { ThemeColor, I18nText } from "../common"; const defaultDismissTime = 5000; export interface AlertInfo { color?: ThemeColor; - message: Text; + message: I18nText; dismissTime?: number | "never"; } |