We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133b88b commit 35fcfe9Copy full SHA for 35fcfe9
src/modules/deals/SuccessCell.tsx
@@ -15,20 +15,12 @@ export function SuccessCell({ deal }: { deal: Deal }) {
15
const timeout = timeoutTimestamp && timeoutTimestamp < Date.now();
16
let color;
17
if (successRate === 1) {
18
- color = '#11B15E';
+ color = 'text-success-foreground';
19
} else if (!timeout) {
20
- color = '#F4C503';
+ color = 'text-warning-foreground';
21
} else {
22
- color = '#EF5353';
+ color = 'text-danger-foreground';
23
}
24
25
- return (
26
- <div
27
- style={{
28
- color: color,
29
- }}
30
- >
31
- {successRate * 100}%
32
- </div>
33
- );
+ return <div className={color}>{successRate * 100}%</div>;
34
0 commit comments