diff --git a/packages/docs/src/components/layout/search/SearchModal.tsx b/packages/docs/src/components/layout/search/SearchModal.tsx index ffe2e5ba..f8065eaf 100644 --- a/packages/docs/src/components/layout/search/SearchModal.tsx +++ b/packages/docs/src/components/layout/search/SearchModal.tsx @@ -99,7 +99,7 @@ const SearchModal: FC = ({ open, onClose, searchablePages }) = setCanFocus(true); setTimeout(() => { onClose(); - }); + }, 100); }, [onClose]); const handleSearchChange = useCallback((event: ChangeEvent) => { diff --git a/packages/docs/src/components/layout/search/SearchResult.tsx b/packages/docs/src/components/layout/search/SearchResult.tsx index 86033e24..ccb17deb 100644 --- a/packages/docs/src/components/layout/search/SearchResult.tsx +++ b/packages/docs/src/components/layout/search/SearchResult.tsx @@ -58,24 +58,12 @@ interface SearchResultProps { const SearchResult = ({ entry: { url, title }, summary, onClick }: SearchResultProps) => { const theme = useTheme(); - // const Icon = useMemo(() => { - // switch (type) { - // case NEWS: - // return ArticleIcon; - // case BULLETIN: - // return NewspaperIcon; - // default: - // return WebIcon; - // } - // }, [type]); - return (