Skip to content

Commit

Permalink
Merge pull request #125 from indexnetwork/fix
Browse files Browse the repository at this point in the history
dont show search when no items
  • Loading branch information
confxsd authored May 24, 2024
2 parents d6ca8d7 + f17dfb4 commit 210cfde
Showing 1 changed file with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,20 @@ export default function IndexItemsTabSection() {

return (
<Flex flexdirection="column" className="idxflex-grow-1">
<FlexRow className={"mt-6"}>
<Col className="idxflex-grow-1">
<SearchInput
onSearch={handleSearch}
debounceTime={300}
showClear
defaultValue={search}
loading={searchLoading}
placeholder="Search in this index"
/>
</Col>
</FlexRow>
{itemsState.items.length > 0 && (
<FlexRow className={"mt-6"}>
<Col className="idxflex-grow-1">
<SearchInput
onSearch={handleSearch}
debounceTime={300}
showClear
defaultValue={search}
loading={searchLoading}
placeholder="Search in this index"
/>
</Col>
</FlexRow>
)}

{isCreator && (
<FlexRow>
Expand Down

0 comments on commit 210cfde

Please sign in to comment.