+
{React.string("No matching records found")}
} else if isNonGrouped {
@@ -1591,7 +1591,7 @@ module BaseDropdown = {
~addButton=false,
~marginTop="mt-10", //to position dropdown below the button,
~customStyle="",
- ~customSearchStyle="bg-jp-gray-100 dark:bg-jp-gray-950 p-2",
+ ~customSearchStyle="dark:bg-jp-gray-950 p-2",
~showSelectionAsChips=true,
~showToolTip=false,
~showNameAsToolTip=false,
@@ -1853,6 +1853,7 @@ module BaseDropdown = {
showSearchIcon
?sortingBasedOnDisabled
preservedAppliedOptions
+ customSearchStyle
/>
} else if addButton {
}
@@ -2036,7 +2038,7 @@ module BaseDropdown = {
dropDirection == BottomMiddle ||
dropDirection == BottomRight
? "origin-top"
- : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} bg-gray-50 dark:bg-jp-gray-950 ${fullLength
+ : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} rounded-lg dark:bg-jp-gray-950 ${fullLength
? "w-full"
: ""}`}
ref={dropdownRef->ReactDOM.Ref.domRef}>
@@ -2056,7 +2058,7 @@ module BaseDropdown = {
dropDirection == BottomMiddle ||
dropDirection == BottomRight
? "origin-top"
- : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} bg-gray-50 dark:bg-jp-gray-950`}
+ : "origin-bottom"} ${dropdownOuterClass} ${customDropdownOuterClass} z-20 ${marginBottom} rounded-lg dark:bg-jp-gray-950`}
ref={dropdownRef->ReactDOM.Ref.domRef}>
optionsElement
diff --git a/src/screens/OMPSwitch/MerchantSwitch.res b/src/screens/OMPSwitch/MerchantSwitch.res
index 736273181..9191b5b31 100644
--- a/src/screens/OMPSwitch/MerchantSwitch.res
+++ b/src/screens/OMPSwitch/MerchantSwitch.res
@@ -139,7 +139,9 @@ let make = () => {
let (showSwitchingMerch, setShowSwitchingMerch) = React.useState(_ => false)
let (arrow, setArrow) = React.useState(_ => false)
let {
- globalUIConfig: {sidebarColor: {backgroundColor, primaryTextColor, borderColor}},
+ globalUIConfig: {
+ sidebarColor: {backgroundColor, primaryTextColor, borderColor, secondaryTextColor},
+ },
} = React.useContext(ThemeProvider.themeContext)
let getMerchantList = async () => {
try {
@@ -222,7 +224,7 @@ let make = () => {
hideMultiSelectButtons=true
addButton=false
customStyle={`!border-none w-fit ${backgroundColor.sidebarSecondary} !${borderColor} `}
- searchable=false
+ searchable=true
baseComponent={