From b39e8325f887a953d382cdcd64ed242db2e79bb8 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 6 Nov 2025 17:47:34 +0700 Subject: [PATCH] feat(FE-170): simplify action buttons in RecordingForm for detail view --- .../recording/form/RecordingForm.tsx | 74 +++++++++---------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx index dc9f4865..f20d4cb5 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -2414,42 +2414,40 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { {/* Action buttons */}
{/* Left side - Detail & Edit actions */} - {type !== 'add' && !isRecordingApproved(initialValues) && ( -
- {type === 'detail' && deleteRecordingClickHandler && ( - - )} - {type === 'detail' && initialValues && ( - - )} -
- )} +
+ {type === 'detail' && deleteRecordingClickHandler && ( + + )} + {type === 'detail' && initialValues && ( + + )} +
{type === 'detail' && isLayingCategory && (