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 && Сохранение...}