diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index 26ee6ff9..8b785784 100644 --- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -170,7 +170,7 @@ export const SearchControl = () => { {itemsResults.slice(0, 5).map((item) => (
{ const marker = Object.entries(leafletRefs).find((r) => r[1].item === item)?.[1] .marker @@ -183,27 +183,25 @@ export const SearchControl = () => { } }} > -
- {item.layer?.menuIcon ? ( - { - code = code.replace(/fill=".*?"/g, 'fill="currentColor"') - code = code.replace(/stroke=".*?"/g, 'stroke="currentColor"') - return code - }} - /> - ) : ( -
- )} -
-
- {item.name} -
-
- {item.text} -
+ {item.layer?.menuIcon ? ( + { + code = code.replace(/fill=".*?"/g, 'fill="currentColor"') + code = code.replace(/stroke=".*?"/g, 'stroke="currentColor"') + return code + }} + /> + ) : ( +
+ )} +
+
+ {item.name} +
+
+ {item.text}