Merge branch 'development' into feat/FE/US-163/expense-request

This commit is contained in:
ValdiANS
2025-11-17 16:04:35 +07:00
74 changed files with 5989 additions and 2283 deletions
+5 -1
View File
@@ -8,7 +8,7 @@ import Button, { ButtonProps } from '@/components/Button';
import { cn } from '@/lib/helper';
interface ConfirmationModalProps {
export interface ConfirmationModalProps {
ref: RefObject<HTMLDialogElement | null>;
type?: 'info' | 'success' | 'error';
text?: string;
@@ -23,6 +23,7 @@ interface ConfirmationModalProps {
modal?: string;
modalBox?: string;
};
children?: React.ReactNode;
}
const ConfirmationModal = ({
@@ -33,6 +34,7 @@ const ConfirmationModal = ({
primaryButton,
secondaryButton,
className,
children,
}: ConfirmationModalProps) => {
const [isPrimaryButtonLoading, setIsPrimaryButtonLoading] = useState(false);
@@ -95,6 +97,8 @@ 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