Refactor: Move image display into PhotoPrintAreaField component

- Move current image display from parent edit page into PhotoPrintAreaField
- Allows component to control visibility based on client-side removal state
- Image now properly disappears when Remove button is clicked
- Both front and back photo sections now managed entirely by component
- Verified: Remove button works, image disappears immediately, persists to database
This commit is contained in:
Andymick
2026-07-19 12:05:28 +01:00
parent 285a8ab21f
commit 3bb188ed7f
3 changed files with 10 additions and 17 deletions
+2 -1
View File
@@ -102,7 +102,8 @@
"Bash(git commit -m 'Fix: Remove encType from product edit form with Server Action *)",
"Bash(git commit -m 'Feature: Add file removal and print area edit toggles to photo upload *)",
"Bash(git commit -m 'Fix: Show Remove and Modify print area buttons for existing images *)",
"Bash(git commit -m 'Fix: Handle image removal in product editor *)"
"Bash(git commit -m 'Fix: Handle image removal in product editor *)",
"Bash(git commit -m 'Refactor: Move image display into PhotoPrintAreaField component *)"
]
}
}