refactoring

This commit is contained in:
mpetrov 2024-12-16 19:53:20 +02:00
parent 076016c4bf
commit f080a89f21

View File

@ -23,7 +23,7 @@ Or functions:
```javascript ```javascript
export const getStatusStyles = (value) => { export const getStatusStyles = (value) => {
let color; let color;
if (value === "true") { if (value) {
color = 'rgb(39, 134, 34)'; color = 'rgb(39, 134, 34)';
} else { } else {
color = 'rgb(255, 0, 0)'; color = 'rgb(255, 0, 0)';