Commit e743c03
Extract getStatusBadgeBackgroundColor helper to eliminate duplicated logic
Moves the isUnreported + conditional background color logic into a shared
helper in ReportUtils, fixing the inconsistency where UserInfoAndActionButtonRow
was missing the !isDeleted guard that StatusCell had.
Co-authored-by: Jayesh Mangwani <jayeshmangwani@users.noreply.github.com>1 parent c81b0ab commit e743c03
3 files changed
Lines changed: 11 additions & 6 deletions
File tree
- src
- components/Search/SearchList/ListItem
- libs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13251 | 13251 | | |
13252 | 13252 | | |
13253 | 13253 | | |
| 13254 | + | |
| 13255 | + | |
| 13256 | + | |
| 13257 | + | |
| 13258 | + | |
| 13259 | + | |
13254 | 13260 | | |
13255 | 13261 | | |
13256 | 13262 | | |
| |||
13727 | 13733 | | |
13728 | 13734 | | |
13729 | 13735 | | |
| 13736 | + | |
13730 | 13737 | | |
13731 | 13738 | | |
13732 | 13739 | | |
| |||
0 commit comments