diff --git a/website/src/components/Search.tsx b/website/src/components/Search.tsx index 3f4a0a37e1f..772a3c6fa71 100644 --- a/website/src/components/Search.tsx +++ b/website/src/components/Search.tsx @@ -6,22 +6,25 @@ export function Search() { const isMounted = useMounted(); return (
- 🤖} - userIcon={🧑‍💻} - messageSettings={{ - openSourcesInNewTab: false, - prettySources: true, - }} - welcomeMessage="Hi, I'm your AI assistant. How can I help you?" - /> + {isMounted && ( + 🤖} + userIcon={🧑‍💻} + messageSettings={{ + openSourcesInNewTab: false, + prettySources: true, + }} + welcomeMessage="Hi, I'm your AI assistant. How can I help you?" + cmdShortcutKey="" + /> + )}
); } diff --git a/website/theme.config.tsx b/website/theme.config.tsx index 5a2fa0919b9..e654a2cb711 100644 --- a/website/theme.config.tsx +++ b/website/theme.config.tsx @@ -9,7 +9,6 @@ export default defineConfig({ search: { component: Search, }, - main({ children }) { const { resolvedTheme } = useTheme(); const { route } = useRouter(); diff --git a/yarn.lock b/yarn.lock index 9f6fd415917..546310d6324 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4510,16 +4510,16 @@ resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756" integrity sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg== -"@types/unist@*", "@types/unist@^2.0.0", "@types/unist@^2.0.2": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d" - integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== - -"@types/unist@^3.0.0": +"@types/unist@*", "@types/unist@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.0.tgz#988ae8af1e5239e89f9fbb1ade4c935f4eeedf9a" integrity sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w== +"@types/unist@^2.0.0", "@types/unist@^2.0.2": + version "2.0.6" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d" + integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== + "@types/ws@^8.0.0": version "8.5.4" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.4.tgz#bb10e36116d6e570dd943735f86c933c1587b8a5"