From 97e03f73097fb62c309427c5e8446d1bf3c4ff7a Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:34:46 +0300 Subject: [PATCH] Reduce duplicates --- .../src/components/DropdownSearch/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/climatemappedafrica/src/components/DropdownSearch/index.js b/apps/climatemappedafrica/src/components/DropdownSearch/index.js index bccfa2356..dfb33c3f3 100644 --- a/apps/climatemappedafrica/src/components/DropdownSearch/index.js +++ b/apps/climatemappedafrica/src/components/DropdownSearch/index.js @@ -112,6 +112,15 @@ function DropdownSearch({ } }; + let iconComponent = SearchIcon; + let iconBorder; + if (variant === "explore") { + iconComponent = IconProp; + iconBorder = { + borderRadius: "50%", + border: "2px solid #fff", + }; + } const searchIconButton = (