fix admin save state architecture

This commit is contained in:
MOH
2026-03-10 05:24:50 +01:00
parent e219295327
commit f2b5a15191
12 changed files with 123 additions and 38 deletions
@@ -80,7 +80,6 @@ type PortfolioProjectFormProps = {
project?: PortfolioProjectView | null;
formId: string;
redirectPath: string;
submitLabel: string;
};
const localeFieldConfig = [
@@ -286,7 +285,6 @@ export function PortfolioProjectForm({
project,
formId,
redirectPath,
submitLabel,
}: PortfolioProjectFormProps) {
const [activePanel, setActivePanel] = useState<PanelKey>("basic");
const [projectState, setProjectState] = useState<ProjectFormState>(
@@ -864,19 +862,6 @@ export function PortfolioProjectForm({
</section>
</div>
</div>
<AppCard>
<CardContent className="flex flex-col gap-3 p-6 lg:flex-row lg:items-center lg:justify-between">
<p className="text-sm text-muted-foreground">
{validation.allDone
? "Alles bereit zum Speichern."
: "Du kannst jetzt speichern. Falls Pflichtfelder fehlen, bekommst du oben eine Fehlermeldung."}
</p>
<Button type="submit">
{submitLabel}
</Button>
</CardContent>
</AppCard>
</form>
);
}