diff --git a/components/Common/Search/States/WithEmptyState.tsx b/components/Common/Search/States/WithEmptyState.tsx deleted file mode 100644 index f554a0bec206b..0000000000000 --- a/components/Common/Search/States/WithEmptyState.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { useTranslations } from 'next-intl'; -import type { FC } from 'react'; - -import styles from './index.module.css'; - -export const WithEmptyState: FC = () => { - const t = useTranslations(); - - return ( -
- {t('components.search.emptyState.text')} -
- ); -}; diff --git a/components/Common/Search/States/WithSearchBox.tsx b/components/Common/Search/States/WithSearchBox.tsx index 2850f3a692528..d3a2cff45087c 100644 --- a/components/Common/Search/States/WithSearchBox.tsx +++ b/components/Common/Search/States/WithSearchBox.tsx @@ -10,7 +10,6 @@ import type { FC } from 'react'; import styles from '@/components/Common/Search/States/index.module.css'; import { WithAllResults } from '@/components/Common/Search/States/WithAllResults'; -import { WithEmptyState } from '@/components/Common/Search/States/WithEmptyState'; import { WithError } from '@/components/Common/Search/States/WithError'; import { WithNoResults } from '@/components/Common/Search/States/WithNoResults'; import { WithPoweredBy } from '@/components/Common/Search/States/WithPoweredBy'; @@ -184,9 +183,7 @@ export const WithSearchBox: FC = ({ onClose }) => { } aria-autocomplete="list" aria-controls="fulltext-results-container" - aria-expanded={Boolean( - !searchError && searchTerm && searchResults?.count - )} + aria-expanded={Boolean(!searchError && searchResults?.count)} autoComplete="off" role="combobox" type="search" @@ -219,9 +216,7 @@ export const WithSearchBox: FC = ({ onClose }) => { > {searchError && } - {!searchError && !searchTerm && } - - {!searchError && searchTerm && ( + {!searchError && ( <> {searchResults && searchResults.count > 0 &&