diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx b/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx
index 90bea4ce23..02b52bf9e3 100644
--- a/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx
+++ b/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx
@@ -7,6 +7,7 @@ import FNote from "../../entities/fnote";
import { removeOwnedAttributesByNameOrType } from "../../services/attributes";
import { t } from "../../services/i18n";
import server from "../../services/server";
+import Admonition from "../react/Admonition";
import FormSelect from "../react/FormSelect";
import FormTextArea from "../react/FormTextArea";
import FormTextBox from "../react/FormTextBox";
@@ -154,64 +155,56 @@ function SearchStringOption({ note, refreshResults, error, ...restProps }: Searc
}
}, 1000);
- // React to errors
- const { showTooltip, hideTooltip } = useTooltip(inputRef, {
- trigger: "manual",
- title: `${t("search_string.error", { error: error?.message })}`,
- html: true,
- placement: "bottom"
- });
-
// Auto-focus.
useEffect(() => inputRef.current?.focus(), []);
- useEffect(() => {
- if (error) {
- showTooltip();
- setTimeout(() => hideTooltip(), 4000);
- } else {
- hideTooltip();
- }
- }, [ error ]);
+ return <>
+
+
+ >}
+ note={note} {...restProps}
+ >
+ #abc - {t("search_string.label_abc")}#year = 2019 - {t("search_string.label_year")}#rock #pop - {t("search_string.label_rock_pop")}#rock or #pop - {t("search_string.label_rock_or_pop")}#year <= 2000 - {t("search_string.label_year_comparison")}note.dateCreated >= MONTH-1 - {t("search_string.label_date_created")}
-
- >}
- note={note} {...restProps}
- >
- #abc - {t("search_string.label_abc")}#year = 2019 - {t("search_string.label_year")}#rock #pop - {t("search_string.label_rock_pop")}#rock or #pop - {t("search_string.label_rock_or_pop")}#year <= 2000 - {t("search_string.label_year_comparison")}note.dateCreated >= MONTH-1 - {t("search_string.label_date_created")}