Skip to content

Commit d03bfc6

Browse files
committed
fix: add icon
1 parent 0f1db7e commit d03bfc6

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

src/components/incentives/IncentivesButton.tsx

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -345,28 +345,37 @@ const Content = ({
345345
if (hasGhoIncentives) {
346346
if (incentivesNetAPR !== 'Infinity' && incentivesNetAPR < 10000) {
347347
return (
348-
<FormattedNumber
349-
value={incentivesNetAPR}
350-
percent
351-
variant="secondary12"
352-
color="text.secondary"
353-
/>
348+
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>
349+
<FormattedNumber
350+
value={incentivesNetAPR}
351+
percent
352+
variant="secondary12"
353+
color="text.secondary"
354+
/>
355+
<IncentivesIcon width="16" height="16" />
356+
</Box>
354357
);
355358
} else if (incentivesNetAPR !== 'Infinity' && incentivesNetAPR > 9999) {
356359
return (
357-
<FormattedNumber
358-
value={incentivesNetAPR}
359-
percent
360-
compact
361-
variant="secondary12"
362-
color="text.secondary"
363-
/>
360+
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>
361+
<FormattedNumber
362+
value={incentivesNetAPR}
363+
percent
364+
compact
365+
variant="secondary12"
366+
color="text.secondary"
367+
/>
368+
<IncentivesIcon width="16" height="16" />
369+
</Box>
364370
);
365371
} else if (incentivesNetAPR === 'Infinity') {
366372
return (
367-
<Typography variant="main12" color="text.secondary">
368-
369-
</Typography>
373+
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>
374+
<Typography variant="main12" color="text.secondary">
375+
376+
</Typography>
377+
<IncentivesIcon width="16" height="16" />
378+
</Box>
370379
);
371380
}
372381
}

0 commit comments

Comments
 (0)