summaryrefslogtreecommitdiff
path: root/src/lib/tempo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tempo')
-rw-r--r--src/lib/tempo/components/Tempo.jsx16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/tempo/components/Tempo.jsx b/src/lib/tempo/components/Tempo.jsx
index c246f3d8..19cd673b 100644
--- a/src/lib/tempo/components/Tempo.jsx
+++ b/src/lib/tempo/components/Tempo.jsx
@@ -153,14 +153,18 @@ const Tempo = () => {
</Skeleton>
</p>
</div>
- <div className='grid grid-flow-col gap-4'>
+ <div className='grid grid-flow-col gap-2'>
<div className='border w-full p-4'>
<p>Sisa Kredit Limit</p>
<Skeleton
isLoaded={!isLoading}
- h='36px'
+ h='fit'
w='full'
- className='text-3xl font-semibold text-green-600'
+ className={`text-3xl font-semibold ${
+ limitTempo - amountDue < 0
+ ? 'text-red-500'
+ : 'text-green-600'
+ } `}
>
{limitTempo && amountDue
? currencyFormat(
@@ -468,7 +472,11 @@ const Tempo = () => {
isLoaded={!isLoading}
// h='36px'
// w={16}
- className='font-semibold text-sm text-nowrap text-green-700 '
+ className={`font-semibold text-sm text-nowrap ${
+ limitTempo - amountDue < 0
+ ? 'text-red-500'
+ : 'text-green-700'
+ }`}
>
{limitTempo && amountDue
? currencyFormat(