fix admin save state architecture
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user