diff --git a/src/components/infos/Infos.tsx b/src/components/infos/Infos.tsx index 10fda39..2de4835 100644 --- a/src/components/infos/Infos.tsx +++ b/src/components/infos/Infos.tsx @@ -1,7 +1,7 @@ import { Button, IconButton } from '@suid/material'; import { Feature } from 'ol'; import { Geometry } from 'ol/geom'; -import { Component, createSignal, For, Show } from 'solid-js'; +import { Component, createSignal, For, Match, Show, Switch } from 'solid-js'; import { useI18n } from '@solid-primitives/i18n'; import TravelExploreIcon from '@suid/icons-material/TravelExplore'; import AddLocationAltIcon from '@suid/icons-material/AddLocationAlt'; @@ -192,9 +192,7 @@ const Infos: Component<{}> = (props) => { -
- ${feature.get('name') || ''}`} -
+
{feature.get('name') || ''}
@@ -203,7 +201,7 @@ const Infos: Component<{}> = (props) => { onClick={async () => { await Browser.open({ url: `https://www.qwant.com/?q=${encodeURIComponent( - feature.get('name') || '' + feature.get('name') || '' )}&t=web`, }); }} @@ -229,40 +227,37 @@ const Infos: Component<{}> = (props) => { {(key: string) => (
- - - - } + - - + + + + + + +
)}