From 8ecebe686c99d7983c1b8e2ee28b92775bc08089 Mon Sep 17 00:00:00 2001 From: "diana.dolgolyova" Date: Tue, 24 Mar 2026 22:44:22 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20all=20'=D0=A1=D0=BE=D1=85=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5...'=20text,=20show=20toast?= =?UTF-8?q?=20popup=20on=20save=20instead?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/admin/_components/SectionEditor.tsx | 34 ++++++++------------- src/app/admin/open-day/page.tsx | 1 - 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/src/app/admin/_components/SectionEditor.tsx b/src/app/admin/_components/SectionEditor.tsx index 4140ade..e6df36d 100644 --- a/src/app/admin/_components/SectionEditor.tsx +++ b/src/app/admin/_components/SectionEditor.tsx @@ -87,29 +87,19 @@ export function SectionEditor({ return (
-
-

{title}

-
- {status === "saving" && ( - <> - - Сохранение... - - )} - {status === "saved" && ( - <> - - Сохранено - - )} - {status === "error" && ( - <> - - {error} - - )} +

{title}

+ + {/* Fixed toast popup */} + {(status === "saved" || status === "error") && ( +
+ {status === "saved" && <> Сохранено} + {status === "error" && <> {error}}
-
+ )}
{children(data, setData)}
diff --git a/src/app/admin/open-day/page.tsx b/src/app/admin/open-day/page.tsx index e0008d0..55a55ed 100644 --- a/src/app/admin/open-day/page.tsx +++ b/src/app/admin/open-day/page.tsx @@ -531,7 +531,6 @@ export default function OpenDayAdminPage() {

День открытых дверей

- {saving && Сохранение...}