Skip to content

Commit 373cc51

Browse files
committed
feat: replace SVG icon with image for Emergency Alert component
1 parent c09fff3 commit 373cc51

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

frontend/src/pages/Reports/components/EmergencyAlert.tsx

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,14 @@
11
import React from 'react';
22
import { useTranslation } from 'react-i18next';
3+
import redAlertIcon from 'assets/icons/red-alert.svg';
34

45
const EmergencyAlert: React.FC = () => {
56
const { t } = useTranslation();
67

78
return (
89
<div className="report-detail-page__emergency">
910
<div className="report-detail-page__emergency-icon">
10-
<svg
11-
width="20"
12-
height="20"
13-
viewBox="0 0 20 20"
14-
fill="none"
15-
xmlns="http://www.w3.org/2000/svg"
16-
>
17-
<path
18-
d="M9.25736 3.99072C9.52536 3.5167 10.1999 3.5167 10.4679 3.99072L17.8891 16.5347C18.1571 17.0087 17.8199 17.5999 17.2839 17.5999H2.44132C1.90536 17.5999 1.56816 17.0087 1.83616 16.5347L9.25736 3.99072Z"
19-
stroke="#C93A54"
20-
strokeWidth="1.5"
21-
strokeLinecap="round"
22-
strokeLinejoin="round"
23-
/>
24-
<path
25-
d="M9.8623 7.20001V11.2"
26-
stroke="#C93A54"
27-
strokeWidth="1.5"
28-
strokeLinecap="round"
29-
strokeLinejoin="round"
30-
/>
31-
<path
32-
d="M9.8623 14.4H9.87027"
33-
stroke="#C93A54"
34-
strokeWidth="1.5"
35-
strokeLinecap="round"
36-
strokeLinejoin="round"
37-
/>
38-
</svg>
11+
<img src={redAlertIcon} width="25" height="25" alt="Emergency Alert" />
3912
</div>
4013
<p className="report-detail-page__emergency-text">
4114
{t('report.emergency.message', { ns: 'reportDetail' })}

0 commit comments

Comments
 (0)