|
1 | 1 | import { SM, Tag, Tooltip } from '@appquality/unguess-design-system'; |
2 | 2 | import { useTranslation } from 'react-i18next'; |
3 | 3 | import { appTheme } from 'src/app/theme'; |
4 | | -import { SeverityTag } from 'src/common/components/tag/SeverityTag'; |
5 | | -import { Pipe } from 'src/common/components/Pipe'; |
6 | | -import { getSelectedBugId } from 'src/features/bugsPage/bugsPageSlice'; |
7 | 4 | import { ReactComponent as FatherIcon } from 'src/assets/icons/bug-type-unique.svg'; |
8 | 5 | import { Meta } from 'src/common/components/Meta'; |
9 | | -import styled from 'styled-components'; |
10 | | -import { getPriorityInfo } from 'src/common/components/utils/getPriorityInfo'; |
| 6 | +import { Pipe } from 'src/common/components/Pipe'; |
11 | 7 | import { TextAlign } from 'src/common/components/Table'; |
12 | | -import { BugStateIcon } from 'src/common/components/BugStateIcon'; |
| 8 | +import { SeverityTag } from 'src/common/components/tag/SeverityTag'; |
13 | 9 | import { getCustomStatusInfo } from 'src/common/components/utils/getCustomStatusInfo'; |
14 | | -import { BugTitle } from '../components/BugTitle'; |
| 10 | +import { getPriorityInfo } from 'src/common/components/utils/getPriorityInfo'; |
| 11 | +import { getSelectedBugId } from 'src/features/bugsPage/bugsPageSlice'; |
| 12 | +import { Circle } from 'src/pages/Bug/Drawer/Circle'; |
| 13 | +import styled from 'styled-components'; |
15 | 14 | import { TableBugType } from '../../../types'; |
| 15 | +import { BugTitle } from '../components/BugTitle'; |
16 | 16 |
|
17 | 17 | const AlignmentDiv = styled.div<{ |
18 | 18 | alignment?: TextAlign; |
@@ -124,14 +124,14 @@ export const mapBugsToTableData = (bugs: TableBugType[]) => { |
124 | 124 | )} |
125 | 125 | <Pipe size="small" /> |
126 | 126 | <Tag isRegular={!isPillBold} hue="rgba(0,0,0,0)"> |
127 | | - <Tag.Avatar> |
128 | | - <BugStateIcon |
129 | | - size="small" |
130 | | - {...appTheme.colors.byBugState[ |
131 | | - bug.custom_status.name as BugState |
132 | | - ]} |
133 | | - /> |
134 | | - </Tag.Avatar> |
| 127 | + <Circle |
| 128 | + color={`#${bug.custom_status.color}`} |
| 129 | + {...(bug.custom_status.id === 1 && { |
| 130 | + style: { |
| 131 | + border: `2px solid ${appTheme.palette.grey[400]}`, |
| 132 | + }, |
| 133 | + })} |
| 134 | + /> |
135 | 135 | {getCustomStatusInfo(bug.custom_status.name as BugState, t).text} |
136 | 136 | </Tag> |
137 | 137 | {!bug.read && ( |
|
0 commit comments