fix: ProjectSearchBarDialog (search smaller screen) repeating Suggestions string

This commit is contained in:
Vivian Phung 2024-06-24 18:32:10 -04:00 committed by Vivian Phung
parent 41bcb2e7d0
commit f72f6e3609

View File

@ -100,22 +100,24 @@ export const ProjectSearchBarDialog = ({
}, },
)} )}
> >
{items.length > 0 {items.length > 0 ? (
? items.map((item, index) => (
<> <>
<div className="px-2 py-2"> <div className="px-2 py-2">
<p className="text-elements-mid-em text-xs font-medium"> <p className="text-elements-mid-em text-xs font-medium">
Suggestions Suggestions
</p> </p>
</div> </div>
{items.map((item, index) => (
<ProjectSearchBarItem <ProjectSearchBarItem
key={item.id} key={item.id}
item={item} item={item}
{...getItemProps({ item, index })} {...getItemProps({ item, index })}
/> />
))}
</> </>
)) ) : (
: inputValue && <ProjectSearchBarEmpty />} inputValue && <ProjectSearchBarEmpty />
)}
</div> </div>
</div> </div>
</Dialog.Content> </Dialog.Content>