refactoring
This commit is contained in:
parent
076016c4bf
commit
f080a89f21
@ -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)';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user