diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-06 14:30:27 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-03-06 14:30:27 +0700 |
| commit | a5db88b5e8574edb1908fd2a9b9fa6cf5ed2ff05 (patch) | |
| tree | 133f179175d2a5244b25f00b2eeb8f5aed7b3c64 /src/lib/transaction/components/stepper.jsx | |
| parent | 272bed12b28763b6f51b97012a4533ab17a561ae (diff) | |
add approve dan reject
Diffstat (limited to 'src/lib/transaction/components/stepper.jsx')
| -rw-r--r-- | src/lib/transaction/components/stepper.jsx | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/lib/transaction/components/stepper.jsx b/src/lib/transaction/components/stepper.jsx index bc3f6fd8..a121cabd 100644 --- a/src/lib/transaction/components/stepper.jsx +++ b/src/lib/transaction/components/stepper.jsx @@ -53,14 +53,24 @@ const StepApproval = ({ layer, status }) => { <Box flexShrink='0'> <StepTitle className='md:text-xs'>{step.title}</StepTitle> - {layer > step.layer_approval && ( - <StepDescription className='md:text-[8px]'>Approved</StepDescription> - )} - {layer === step.layer_approval && status === 'cancel' && ( - <StepDescription className='md:text-[8px]'>Rejected</StepDescription> - )} - {layer < step.layer_approval && ( - <StepDescription className='md:text-[8px]'>Pending</StepDescription> + {status === 'cancel' ? ( + layer > step.layer_approval ? ( + <StepDescription className='md:text-[8px]'> + Approved + </StepDescription> + ) : ( + <StepDescription className='md:text-[8px]'> + Rejected + </StepDescription> + ) + ) : layer > step.layer_approval ? ( + <StepDescription className='md:text-[8px]'> + Approved + </StepDescription> + ) : ( + <StepDescription className='md:text-[8px]'> + Pending + </StepDescription> )} </Box> <StepSeparator _horizontal={{ ml: '0' }} /> |
