Improve admin save UX and portfolio navigation
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-07 19:20:58 +01:00
parent 3d1976a7a5
commit ee21e8b823
19 changed files with 652 additions and 424 deletions
+3 -1
View File
@@ -48,6 +48,7 @@ type PortfolioProjectFormProps = {
categories: PortfolioCategoryView[];
mediaOptions: MediaOption[];
project?: PortfolioProjectView | null;
formId: string;
redirectPath: string;
submitLabel: string;
};
@@ -120,6 +121,7 @@ export function PortfolioProjectForm({
categories,
mediaOptions,
project,
formId,
redirectPath,
submitLabel,
}: PortfolioProjectFormProps) {
@@ -190,7 +192,7 @@ export function PortfolioProjectForm({
);
return (
<form action={action} className="space-y-6">
<form id={formId} action={action} className="space-y-6">
<input type="hidden" name="id" value={project?.id ?? ""} />
<input type="hidden" name="redirectPath" value={redirectPath} />
<input type="hidden" name="currentCoverImagePath" value={project?.coverImagePath ?? ""} />