feat(FE-170,175): add approval and rejection functionality with confirmation modals in RecordingTable

This commit is contained in:
rstubryan
2025-11-05 09:46:38 +07:00
parent 02cc4a759d
commit fa36c10c01
2 changed files with 159 additions and 1 deletions
@@ -30,6 +30,7 @@ interface ConfirmationModalProps {
modal?: string;
modalBox?: string;
};
children?: React.ReactNode;
}
const ConfirmationModal = ({
@@ -40,6 +41,7 @@ const ConfirmationModal = ({
primaryButton,
secondaryButton,
className,
children,
}: ConfirmationModalProps) => {
const closeModalHandler = () => {
ref.current?.close();
@@ -90,6 +92,12 @@ const ConfirmationModal = ({
{text ?? 'Apakah anda yakin ingin melakukan hal ini?'}
</p>
{children && (
<div className='w-full'>
{children}
</div>
)}
<div className='w-full flex flex-row gap-2'>
{secondaryButton && secondaryButton.text && (
<Button