From c774480a5a25d4afe0d278f08563287683bea2ba Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 6 Nov 2025 13:05:48 +0700 Subject: [PATCH] refactor(FE-170): enhance RecordingForm with approve and reject buttons for detail view --- .../recording/form/RecordingForm.tsx | 79 +++++++++---------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx index d8ea47ac..eadf919a 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -1247,14 +1247,43 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { <>
- +
+ + + {type === 'detail' && ( +
+ + + +
+ )} +
+

{type === 'add' && 'Tambah Recording'} {type === 'edit' && 'Edit Recording'} @@ -2346,40 +2375,6 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { Edit )} - {type === 'detail' && ( - <> - - - - )} )} {type !== 'detail' && (