chore: apply prettier formatting to component files

This commit is contained in:
Jason
2025-10-24 13:02:35 +08:00
parent 36767045ce
commit d296471b3b
16 changed files with 89 additions and 86 deletions

View File

@@ -142,9 +142,7 @@ export function SettingsDialog({
const handleRestartNow = useCallback(async () => {
setShowRestartPrompt(false);
if (import.meta.env.DEV) {
toast.success(
t("settings.devModeRestartHint"),
);
toast.success(t("settings.devModeRestartHint"));
closeAfterSave();
return;
}
@@ -153,9 +151,7 @@ export function SettingsDialog({
await settingsApi.restart();
} catch (error) {
console.error("[SettingsDialog] Failed to restart app", error);
toast.error(
t("settings.restartFailed"),
);
toast.error(t("settings.restartFailed"));
} finally {
closeAfterSave();
}