|
|
|
|
@ -89,17 +89,17 @@ export default function SearchSelect(props) {
|
|
|
|
|
</div>
|
|
|
|
|
<div {...getMenuProps()}>
|
|
|
|
|
{ isOpen &&
|
|
|
|
|
<ul className="absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm">
|
|
|
|
|
<ul className="absolute z-10 mt-1 w-full bg-white dark:bg-gray-900 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm">
|
|
|
|
|
{ !loading && items.length == 0 &&
|
|
|
|
|
<li className="text-gray-500 text-sm select-none py-2 px-3">No matches found in the current dashboard. Try selecting a different time range or searching for something different</li>
|
|
|
|
|
<li className="text-gray-500 select-none py-2 px-3">No matches found in the current dashboard. Try selecting a different time range or searching for something different</li>
|
|
|
|
|
}
|
|
|
|
|
{ loading && items.length == 0 &&
|
|
|
|
|
<li className="text-gray-500 select-none py-2 px-3">Loading options...</li>
|
|
|
|
|
<li className="text-gray-500 select-none py-2 px-3">Loading options...</li>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
items.map((item, index) => (
|
|
|
|
|
<li className={classNames("cursor-pointer select-none relative py-2 pl-3 pr-9", {'text-white bg-indigo-600': highlightedIndex === index, 'text-gray-900': highlightedIndex !== index})}
|
|
|
|
|
<li className={classNames("cursor-pointer select-none relative py-2 pl-3 pr-9", {'text-white bg-indigo-600': highlightedIndex === index, 'text-gray-900 dark:text-gray-100': highlightedIndex !== index})}
|
|
|
|
|
key={`${item}${index}`}
|
|
|
|
|
{...getItemProps({ item, index })}
|
|
|
|
|
>
|
|
|
|
|
|