diff --git a/tdrive/frontend/src/app/views/client/common/search.tsx b/tdrive/frontend/src/app/views/client/common/search.tsx index c1e5c303..3acf915b 100644 --- a/tdrive/frontend/src/app/views/client/common/search.tsx +++ b/tdrive/frontend/src/app/views/client/common/search.tsx @@ -1,13 +1,12 @@ -import { Button } from '@atoms/button/button'; import { Input } from '@atoms/input/input-text'; -import { AdjustmentsIcon, SearchIcon } from '@heroicons/react/outline'; +import { SearchIcon } from '@heroicons/react/outline'; import { InputDecorationIcon } from '@atoms/input/input-decoration-icon'; import Languages from '@features/global/services/languages-service'; import RouterServices from '@features/router/services/router-service'; import { useSearchModal } from '@features/search/hooks/use-search'; import { SearchInputState } from '@features/search/state/search-input'; import { useRecoilState } from 'recoil'; -import { ToasterService } from 'app/features/global/services/toaster-service'; +import { XIcon } from 'app/atoms/icons-agnostic'; export default (): JSX.Element => { const { workspaceId, channelId } = RouterServices.getStateFromRoute(); @@ -31,6 +30,12 @@ export default (): JSX.Element => { prefix={() => ( )} + suffix={() => + setSearchState({ ...searchState, query: '' }) } + /> + } input={({ className }) => (