Skip to content

Commit fad3aba

Browse files
author
Jan Jaap van Deursen
committed
Fixes references
1 parent 8cde963 commit fad3aba

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

src/signals/incident/components/form/MapSelectors/Asset/Selector/SelectionPanel/SelectionPanel.test.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
import { fireEvent, render, screen, within } from '@testing-library/react'
44
import { withAppContext } from 'test/utils'
55

6-
import glasUrl from 'shared/images/afval/glas.svg?url'
7-
import unknownFeatureMarkerUrl from 'shared/images/featureUnknownMarker.svg?url'
8-
96
import userEvent from '@testing-library/user-event'
107

118
import { UNREGISTERED_TYPE } from '../../../constants'
@@ -32,7 +29,7 @@ describe('SelectionPanel', () => {
3229
description: 'Glas container',
3330
icon: {
3431
options: {},
35-
iconUrl: glasUrl,
32+
iconUrl: '/assets/images/afval/glas.svg',
3633
},
3734
idField: 'id_nummer',
3835
typeField: 'fractie_omschrijving',
@@ -42,7 +39,7 @@ describe('SelectionPanel', () => {
4239
description: 'Het object staat niet op de kaart',
4340
label: 'Onbekend',
4441
icon: {
45-
iconUrl: unknownFeatureMarkerUrl,
42+
iconUrl: '/assets/images/featureUnknownMarker.svg',
4643
},
4744
idField: 'id',
4845
typeField: 'type',

src/signals/incident/components/form/MapSelectors/Asset/Selector/WfsLayer/StatusLayer/StatusLayer.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import type {
1212
import { Marker } from '@amsterdam/arm-core'
1313
import { featureToCoordinates } from 'shared/services/map-location'
1414
import type { Geometrie } from 'types/incident'
15-
import reportedIconUrl from 'shared/images/icon-reported-marker.svg?url'
16-
import checkedIconUrl from 'shared/images/icon-checked-marker.svg?url'
1715
import { getIsChecked, getIsReported } from './utils'
1816

1917
const STATUS_CLASS_MODIFIER = 'marker-status'
@@ -37,7 +35,9 @@ const StatusLayer: FC<StatusLayerProps> = ({
3735

3836
const icon = L.icon({
3937
iconSize: [20, 20],
40-
iconUrl: isReported ? reportedIconUrl : checkedIconUrl,
38+
iconUrl: isReported
39+
? '/assets/images/icon-reported-marker.svg'
40+
: '/assets/images/icon-checked-marker.svg',
4141
className: STATUS_CLASS_MODIFIER,
4242
})
4343

src/signals/incident/definitions/wizard-step-2-vulaan/straatverlichting-klokken.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const straatverlichtingKlokken = {
259259
description: 'Is gemeld',
260260
icon: {
261261
options,
262-
iconUrl: 'assets/images/icon-reported-marker.svg',
262+
iconUrl: '/assets/images/icon-reported-marker.svg',
263263
},
264264
idField: 'objectnummer',
265265
typeField: 'objecttype',

src/utils/__tests__/fixtures/caterpillarsSelection.tsx

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import oakUrl from 'shared/images/groen_water/oak.svg?url'
2-
import reportedFeatureMarkerUrl from '*.svg?url'
3-
import checkedFeatureMarkerUrl from '*.svg?url'
4-
51
export const selection = [
62
{
73
id: 308777,
@@ -44,7 +40,7 @@ export const meta = {
4440
description: 'Eikenboom',
4541
icon: {
4642
options: {},
47-
iconUrl: oakUrl,
43+
iconUrl: '/assets/images/groen_water/oak.svg',
4844
},
4945
idField: 'OBJECTID',
5046
typeValue: 'Eikenboom',
@@ -57,7 +53,7 @@ export const meta = {
5753
description: 'Eikenboom is reeds gemeld',
5854
icon: {
5955
options: {},
60-
iconUrl: reportedFeatureMarkerUrl,
56+
iconUrl: '/assets/images/groen_water/oakReported.svg',
6157
},
6258
iconIsReportedId: 'oakIsReported',
6359
idField: 'OBJECTID',
@@ -71,7 +67,7 @@ export const meta = {
7167
description: 'Vrij van eikenprocessierups',
7268
icon: {
7369
options: {},
74-
iconUrl: checkedFeatureMarkerUrl,
70+
iconUrl: '/assets/images/icon-checked-marker.svg',
7571
},
7672
idField: 'OBJECTID',
7773
typeValue: 'checked',

0 commit comments

Comments
 (0)