feat: toast popup for save status — 'Сохранено' or error, no layout jump

This commit is contained in:
2026-03-24 22:55:13 +03:00
parent 8ecebe686c
commit eb6ec5aeb6
2 changed files with 20 additions and 5 deletions

View File

@@ -51,6 +51,7 @@ export function SectionEditor<T>({
} catch {
setStatus("error");
setError("Ошибка сохранения");
setTimeout(() => setStatus((s) => (s === "error" ? "idle" : s)), 4000);
}
}, [sectionKey]);