Skip to content

Commit 05d4bb4

Browse files
samsharafrozenhelium
authored andcommitted
feat: add active surge deployments map
1 parent 0f37b76 commit 05d4bb4

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

app/src/views/ActiveSurgeDeployments/SurgeMap/index.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import {
5454

5555
import i18n from './i18n.json';
5656
import styles from './styles.module.css';
57+
import { MAX_PAGE_LIMIT } from '#utils/constants';
5758

5859
const sourceOptions: mapboxgl.GeoJSONSourceRaw = {
5960
type: 'geojson',
@@ -73,6 +74,13 @@ interface Props {
7374
className?: string;
7475
}
7576

77+
interface NameOutputProps {
78+
name: string;
79+
}
80+
function NameOutput({ name }: NameOutputProps) {
81+
return name;
82+
}
83+
7684
function SurgeMap(props: Props) {
7785
const {
7886
className,
@@ -103,7 +111,7 @@ function SurgeMap(props: Props) {
103111
query: {
104112
deployed_to__isnull: false,
105113
disaster_type: disasterFilter,
106-
limit: 9999,
114+
limit: MAX_PAGE_LIMIT,
107115
},
108116
});
109117

@@ -115,7 +123,7 @@ function SurgeMap(props: Props) {
115123
end_date__gt: now,
116124
is_active: true,
117125
dtype: disasterFilter,
118-
limit: 9999,
126+
limit: MAX_PAGE_LIMIT,
119127
},
120128
});
121129

@@ -425,13 +433,13 @@ function SurgeMap(props: Props) {
425433
labelClassName={styles.label}
426434
value={(
427435
<ReducedListDisplay
428-
list={event.eruType}
436+
list={event.roleProfile}
429437
keySelector={stringNameSelector}
430438
renderer={DisplayName}
431439
rendererParams={rendererParams}
432440
/>
433441
)}
434-
label={strings.eruType}
442+
label={strings.roleProfile}
435443
strongLabel
436444
/>
437445
<TextOutput
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"namespace": "activeSurgeDeployments",
3+
"strings": {
4+
"activeSurgeDeploymentsPageTitle": "Active Surge Deployments"
5+
}
6+
}

0 commit comments

Comments
 (0)