diff --git a/frontend/editor/public/locales/en-GB/translation.toml b/frontend/editor/public/locales/en-GB/translation.toml index 12c1fe80bd..34e7421617 100644 --- a/frontend/editor/public/locales/en-GB/translation.toml +++ b/frontend/editor/public/locales/en-GB/translation.toml @@ -7897,8 +7897,6 @@ title = "Nothing here yet" [portal.search] goTo = "Go to" -hint = "Type to jump to any portal page" -placeholder = "Search Stirling" [portal.settings.groups] admin = "Admin" @@ -9723,8 +9721,8 @@ uploadButton = "Upload to Server" [superSearch] ariaLabel = "Super search" -hint = "Type to search across your files, tools and settings" -placeholder = "Search files, tools and settings…" +hint = "Type to search" +placeholder = "Search Stirling" [superSearch.group] files = "Files" diff --git a/frontend/editor/public/locales/en-US/translation.toml b/frontend/editor/public/locales/en-US/translation.toml index 26d113bd07..720ced27eb 100644 --- a/frontend/editor/public/locales/en-US/translation.toml +++ b/frontend/editor/public/locales/en-US/translation.toml @@ -7987,8 +7987,6 @@ title = "Nothing here yet" [portal.search] goTo = "Go to" -hint = "Type to jump to any portal page" -placeholder = "Search Stirling" [portal.settings.groups] admin = "Admin" @@ -9845,8 +9843,8 @@ uploadButton = "Upload to Server" [superSearch] ariaLabel = "Super search" -hint = "Type to search across your files, tools and settings" -placeholder = "Search files, tools and settings…" +hint = "Type to search" +placeholder = "Search Stirling" [superSearch.group] files = "Files" diff --git a/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx b/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx index 6817eb6fa1..a40b539ae8 100644 --- a/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx +++ b/frontend/editor/src/core/components/shared/superSearch/SuperSearch.tsx @@ -33,12 +33,6 @@ interface SuperSearchProps { * Processor provider; the portal passes its own destinations provider. */ useResults?: (query: string, active: boolean) => UseSuperSearchResult; - /** Override the input placeholder (defaults to the editor copy). */ - placeholder?: string; - /** Override the empty-query hint line (defaults to the editor copy). */ - hint?: string; - /** DOM id for the input — external focus helpers target it. */ - inputId?: string; } /** @@ -51,9 +45,6 @@ interface SuperSearchProps { */ export default function SuperSearch({ useResults = useSuperSearch, - placeholder, - hint, - inputId = "super-search-input", }: SuperSearchProps = {}) { const { t } = useTranslation(); const [query, setQuery] = useState(""); @@ -190,11 +181,7 @@ export default function SuperSearch({ > {!hasQuery && (
- {hint ?? - t( - "superSearch.hint", - "Type to search across your files, tools and settings", - )} + {t("superSearch.hint", "Type to search")}
)} @@ -254,15 +241,12 @@ export default function SuperSearch({ return (
} diff --git a/frontend/editor/src/portal/components/PortalSearchBar.tsx b/frontend/editor/src/portal/components/PortalSearchBar.tsx index e1a3793921..dd37ac5711 100644 --- a/frontend/editor/src/portal/components/PortalSearchBar.tsx +++ b/frontend/editor/src/portal/components/PortalSearchBar.tsx @@ -1,4 +1,3 @@ -import { useTranslation } from "react-i18next"; import SuperSearch from "@app/components/shared/superSearch/SuperSearch"; import { usePortalSearchResults } from "@portal/hooks/usePortalSearchResults"; import "@portal/components/PortalSearchBar.css"; @@ -9,15 +8,9 @@ import "@portal/components/PortalSearchBar.css"; * focuses it (the bar registers its own shortcut). */ export function PortalSearchBar() { - const { t } = useTranslation(); return (
- +
); }