chore: add title prop

This commit is contained in:
ValdiANS
2026-02-06 09:43:34 +07:00
parent f6cf4a29ad
commit f0637e2ce9
+3 -1
View File
@@ -9,6 +9,7 @@ import Button from '@/components/Button';
import { cn, formatDate } from '@/lib/helper'; import { cn, formatDate } from '@/lib/helper';
interface ApprovalStepsV2Props { interface ApprovalStepsV2Props {
title?: string;
approvals?: BaseApproval[]; approvals?: BaseApproval[];
steps: { steps: {
step_number: number; step_number: number;
@@ -23,6 +24,7 @@ interface ApprovalStepsV2Props {
} }
const ApprovalStepsV2 = ({ const ApprovalStepsV2 = ({
title = 'Progress Details',
approvals, approvals,
steps, steps,
maxVisibleSteps = 2, maxVisibleSteps = 2,
@@ -99,7 +101,7 @@ const ApprovalStepsV2 = ({
)} )}
> >
<h4 className='text-base font-medium text-base-content/50 font-roboto'> <h4 className='text-base font-medium text-base-content/50 font-roboto'>
Progress Details {title}
</h4> </h4>
<div <div