mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 11:43:57 +08:00
fix(ui): add close button to all success toasts
This commit is contained in:
@@ -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