mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-29 09:37:37 +08:00
fix(ui): add close button to all success toasts
This commit is contained in:
@@ -142,7 +142,7 @@ export function AboutSection({ isPortable }: AboutSectionProps) {
|
||||
try {
|
||||
const available = await checkUpdate();
|
||||
if (!available) {
|
||||
toast.success(t("settings.upToDate"));
|
||||
toast.success(t("settings.upToDate"), { closeButton: true });
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("[AboutSection] Check update failed", error);
|
||||
|
||||
@@ -136,7 +136,7 @@ export function SettingsPage({
|
||||
const handleRestartNow = useCallback(async () => {
|
||||
setShowRestartPrompt(false);
|
||||
if (import.meta.env.DEV) {
|
||||
toast.success(t("settings.devModeRestartHint"));
|
||||
toast.success(t("settings.devModeRestartHint"), { closeButton: true });
|
||||
closeAfterSave();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user