diff --git a/src/components/widgets/search/search.jsx b/src/components/widgets/search/search.jsx index 7ce06067d..2a08a9a84 100644 --- a/src/components/widgets/search/search.jsx +++ b/src/components/widgets/search/search.jsx @@ -1,4 +1,13 @@ -import { Combobox, Listbox, Transition } from "@headlessui/react"; +import { + Combobox, + ComboboxOption, + ComboboxOptions, + Listbox, + ListboxButton, + ListboxOption, + ListboxOptions, + Transition, +} from "@headlessui/react"; import classNames from "classnames"; import { useTranslation } from "next-i18next"; import { Fragment, useEffect, useState } from "react"; @@ -189,7 +198,7 @@ export default function Search({ options }) { disabled={availableProviderIds?.length === 1} >
- {t("search.search")} - +
- { const p = searchProviders[providerId]; return ( - + {({ active }) => (
  • )} -
    + ); })} -
    +
    {searchSuggestions[1]?.length > 0 && ( - +
    - + {searchSuggestions[1].map((suggestion) => ( - { + onMouseDown={() => { doSearch(suggestion); }} className="flex w-full" @@ -266,10 +275,10 @@ export default function Search({ options }) {
    ); }} - + ))} -
    + )}