mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 23:05:46 +00:00
feat(FE-170,175): add approval and rejection functionality with confirmation modals in RecordingTable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user