mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-31 19:22:15 +08:00
fix(ui): add close button to all success toasts
This commit is contained in:
@@ -113,6 +113,7 @@ export function useImportExport(
|
||||
t("settings.importSuccess", {
|
||||
defaultValue: "配置导入成功",
|
||||
}),
|
||||
{ closeButton: true },
|
||||
);
|
||||
|
||||
successTimerRef.current = window.setTimeout(() => {
|
||||
@@ -170,6 +171,7 @@ export function useImportExport(
|
||||
t("settings.configExported", {
|
||||
defaultValue: "配置已导出",
|
||||
}) + `\n${displayPath}`,
|
||||
{ closeButton: true },
|
||||
);
|
||||
} else {
|
||||
toast.error(
|
||||
|
||||
Reference in New Issue
Block a user