Skip to content

Commit 99497ee

Browse files
committed
refactor(filter recap): renaming props for better redability
1 parent 669efdf commit 99497ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/Bugs/Filters/FilterRecap.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const PillWrapper = styled.div`
2121
const FilterRecapItem = ({
2222
type,
2323
value,
24-
hue,
24+
hasBackground,
2525
color,
2626
name,
2727
icon,
@@ -35,7 +35,7 @@ const FilterRecapItem = ({
3535
| 'devices'
3636
| 'os'
3737
| 'replicabilities';
38-
hue?: boolean;
38+
hasBackground?: boolean;
3939
color?: string;
4040
value: string;
4141
name: string;
@@ -45,7 +45,7 @@ const FilterRecapItem = ({
4545
const filters = getSelectedFilters();
4646
return (
4747
<Tag
48-
hue={color && hue ? `${color}10` : ''}
48+
hue={color && hasBackground ? `${color}10` : ''}
4949
color={color || 'inherit'}
5050
size="large"
5151
>
@@ -192,7 +192,7 @@ export const FilterRecap = () => {
192192
type="severities"
193193
value={severity.id.toString()}
194194
color={getSeverityInfo(severity.name as Severities, t).color}
195-
hue
195+
hasBackground
196196
name={getSeverityInfo(severity.name as Severities, t).text}
197197
/>
198198
))

0 commit comments

Comments
 (0)