Skip to content

Commit bb80980

Browse files
fereecafrozenhelium
authored andcommitted
Remove inactive map export in emergency-details
- Remove inactive export button from Region Three W
1 parent 49ff19e commit bb80980

File tree

2 files changed

+6
-31
lines changed

2 files changed

+6
-31
lines changed

src/views/EmergencyDetails/index.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useMemo } from 'react';
22
import { useOutletContext } from 'react-router-dom';
33
import useTranslation from '#hooks/useTranslation';
4-
import { DownloadFillIcon } from '@ifrc-go/icons';
54
import {
65
compareDate,
76
isDefined,
@@ -11,7 +10,6 @@ import {
1110
listToMap,
1211
} from '@togglecorp/fujs';
1312

14-
import Button from '#components/Button';
1513
import Container from '#components/Container';
1614
import HtmlOutput from '#components/HtmlOutput';
1715
import KeyFigure from '#components/KeyFigure';
@@ -294,16 +292,6 @@ export function Component() {
294292
className={styles.mapContainer}
295293
heading={strings.emergencyMapTitle}
296294
withHeaderBorder
297-
actions={(
298-
<Button
299-
variant="secondary"
300-
name={undefined}
301-
title={strings.exportMap}
302-
icons={(<DownloadFillIcon />)}
303-
>
304-
{strings.exportMap}
305-
</Button>
306-
)}
307295
>
308296
{emergencyResponse && (
309297
<EmergencyMap

src/views/RegionThreeW/index.tsx

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ import {
55
isDefined,
66
isNotDefined,
77
} from '@togglecorp/fujs';
8-
import {
9-
DownloadFillIcon,
10-
} from '@ifrc-go/icons';
118

129
import BlockLoading from '#components/BlockLoading';
13-
import Button from '#components/Button';
1410
import Container from '#components/Container';
1511
import ExpandableContainer, {
1612
type Props as ExpandableContainerProps,
@@ -295,21 +291,12 @@ export function Component() {
295291
/>
296292
)}
297293
actions={(
298-
<>
299-
<Button
300-
variant="primary"
301-
name={undefined}
302-
icons={<DownloadFillIcon />}
303-
>
304-
{strings.export}
305-
</Button>
306-
<Link
307-
variant="secondary"
308-
to="newThreeWProject"
309-
>
310-
{strings.addThreeW}
311-
</Link>
312-
</>
294+
<Link
295+
variant="secondary"
296+
to="newThreeWProject"
297+
>
298+
{strings.addThreeW}
299+
</Link>
313300
)}
314301
>
315302
<MovementActivitiesMap

0 commit comments

Comments
 (0)