Hide customer action buttons (Submit/Add to bag) when in admin editing mode

Added isAdminEditing prop to DesignCanvas component. When true, hides the
"Submit for Approval" and "Add to bag" buttons since these are customer-facing
actions. The admin edit page now only shows the design canvas and the
"Send to Customer for Review" button.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-18 18:05:55 +01:00
co-authored by Claude Haiku 4.5
parent fded2af63b
commit 30e4a0c229
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ export default function EditDesignPage({ params }: { params: { id: string } }) {
</div>
{/* Full Design Canvas */}
<DesignCanvas product={design.product} />
<DesignCanvas product={design.product} isAdminEditing={true} />
</div>
</div>
);