From 9f26666abfa66ee426a9dfdcf63b00918bcdf1a9 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Wed, 19 Mar 2025 17:14:15 +0000 Subject: [PATCH] theming search resuts --- .../Subcomponents/Controls/SearchControl.tsx | 42 +++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) 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}