diff --git a/packages/bruno-app/src/components/Sidebar/Collections/index.js b/packages/bruno-app/src/components/Sidebar/Collections/index.js index af54350e4..289663ddf 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/index.js @@ -5,7 +5,8 @@ import { IconFolders, IconArrowsSort, IconSortAscendingLetters, - IconSortDescendingLetters + IconSortDescendingLetters, + IconX } from '@tabler/icons'; import Collection from '../Collections/Collection'; import CreateCollection from '../CreateCollection'; @@ -97,8 +98,20 @@ const Collections = () => { spellCheck="false" className="block w-full pl-7 py-1 sm:text-sm" placeholder="search" + value={searchText} onChange={(e) => setSearchText(e.target.value.toLowerCase())} /> + {searchText !== '' && ( +
+ { + setSearchText(''); + }} + > + + +
+ )}