From e73497265f8231bcd1fa03dd8f4b5920696b19a5 Mon Sep 17 00:00:00 2001 From: evlist Date: Fri, 10 Feb 2023 15:38:18 +0100 Subject: [PATCH] Updating TrksegViewer as well. --- src/components/rte/RteViewer.tsx | 6 ++---- src/components/trkseg/TrksegViewer.tsx | 14 ++++---------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/components/rte/RteViewer.tsx b/src/components/rte/RteViewer.tsx index 7c302e7..7542b3a 100644 --- a/src/components/rte/RteViewer.tsx +++ b/src/components/rte/RteViewer.tsx @@ -1,4 +1,4 @@ -import { Component, createSignal, Show } from 'solid-js'; +import { Component, createSignal } from 'solid-js'; import { peekCachedSignal } from '../../workers/cached-signals'; import RteIcon from '../../icons/directions-svgrepo-com.svg?component-solid'; import { useI18n } from '@solid-primitives/i18n'; @@ -7,9 +7,7 @@ import DeleteIcon from '@suid/icons-material/Delete'; import QuestionMarkIcon from '@suid/icons-material/QuestionMark'; import Tree from '../tree'; import { LineString } from 'ol/geom'; -import DisplayOrGetAddress, { - DisplayOrGetStartEndAddresses, -} from '../display-or-get-address'; +import { DisplayOrGetStartEndAddresses } from '../display-or-get-address'; import { getFormatedLength } from '../../lib/ol'; import Alert from '../alert'; import dispatch from '../../workers/dispatcher-main'; diff --git a/src/components/trkseg/TrksegViewer.tsx b/src/components/trkseg/TrksegViewer.tsx index fbd4c6d..37827a2 100644 --- a/src/components/trkseg/TrksegViewer.tsx +++ b/src/components/trkseg/TrksegViewer.tsx @@ -4,7 +4,7 @@ import Tree from '../tree'; import TrkIcon from '../../icons/human-footprints-svgrepo-com.svg?component-solid'; import { useI18n } from '@solid-primitives/i18n'; import { getFormatedLength } from '../../lib/ol'; -import DisplayOrGetAddress from '../display-or-get-address'; +import { DisplayOrGetStartEndAddresses } from '../display-or-get-address'; import { LineString } from 'ol/geom'; interface Props { @@ -41,16 +41,10 @@ const TrksegViewer: Component = ({ trksegId }) => { <>
{getFormatedLength(lineString)} {t('from')}{' '} - trkseg().trkpt} putAction='putTrkpt' - putParamName='trkpt' - />{' '} - {t('to')}{' '} -