|
1 | 1 | import { |
2 | | - // Button, |
3 | 2 | Lightbox, |
4 | 3 | MD, |
| 4 | + Player, |
5 | 5 | Slider, |
6 | 6 | Span, |
7 | 7 | XL, |
8 | | - Player, |
9 | 8 | } from '@appquality/unguess-design-system'; |
| 9 | +import { t } from 'i18next'; |
10 | 10 | import { useCallback, useRef } from 'react'; |
11 | | -import styled from 'styled-components'; |
12 | | -import useWindowSize from 'src/hooks/useWindowSize'; |
| 11 | +import { Trans } from 'react-i18next'; |
13 | 12 | import { appTheme } from 'src/app/theme'; |
14 | 13 | import { GetCampaignsByCidUxApiResponse } from 'src/features/api'; |
15 | | -import { t } from 'i18next'; |
16 | | -// import { ReactComponent as DownloadIcon } from 'src/assets/icons/download-stroke.svg'; |
17 | | -import { Trans } from 'react-i18next'; |
18 | | -import { |
19 | | - getClusterName, |
20 | | - // getClusterTag, |
21 | | - getSeverityTag, |
22 | | -} from './utils'; |
| 14 | +import useWindowSize from 'src/hooks/useWindowSize'; |
| 15 | +import styled from 'styled-components'; |
| 16 | +import { getClusterName, getSeverityTag } from './utils'; |
23 | 17 |
|
24 | 18 | const LightboxHeader = styled(Lightbox.Header)` |
25 | 19 | display: flex; |
@@ -120,29 +114,11 @@ const InsightLightbox = ({ |
120 | 114 | '__CAMPAIGN_PAGE_INSIGHTS_LIGHTBOX_DETAILS_LINKED_INSIGHT_LABEL' |
121 | 115 | )} |
122 | 116 | </MD> |
123 | | - <MD>{insight.description}</MD> |
| 117 | + <MD style={{ whiteSpace: 'pre-wrap' }}>{insight.description}</MD> |
124 | 118 | </Lightbox.Body.Details> |
125 | 119 | )} |
126 | 120 | </Lightbox.Body> |
127 | | - {/* TODO: check how to download the trimmed video, not the full media url 📦📦📦 */} |
128 | | - <Lightbox.Footer> |
129 | | - {/* <Button |
130 | | - isBasic |
131 | | - onClick={() => { |
132 | | - if (items) |
133 | | - if (currentIndex in items) { |
134 | | - const media = items[currentIndex as number]; |
135 | | - // eslint-disable-next-line security/detect-non-literal-fs-filename |
136 | | - window.open(media.url, '_blank'); |
137 | | - } |
138 | | - }} |
139 | | - > |
140 | | - <Button.StartIcon> |
141 | | - <DownloadIcon /> |
142 | | - </Button.StartIcon> |
143 | | - {t('__BUGS_PAGE_BUG_DETAIL_ATTACHMENTS_DOWNLOAD_BUTTON')} |
144 | | - </Button> */} |
145 | | - </Lightbox.Footer> |
| 121 | + <Lightbox.Footer /> |
146 | 122 | <Lightbox.Close aria-label="Close insight lightbox" /> |
147 | 123 | </Lightbox> |
148 | 124 | ); |
|
0 commit comments