Skip to content

Commit

Permalink
bring no results message out of the collectionresults div
Browse files Browse the repository at this point in the history
  • Loading branch information
Park Se Hyun committed Jan 14, 2025
1 parent 63e410a commit 095b4e4
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,21 @@ export const CollectionResults = ({
/>
),
)}
{paginatedItems.length === 0 && (
<div className="flex flex-col gap-1 py-32 text-center text-content">
<p className="prose-body-base">
We couldn’t find any articles. Try different search terms or
filters.
</p>
<button
className="prose-headline-base-medium mx-auto w-fit text-link underline-offset-4 hover:underline"
onClick={handleClearFilter}
>
Clear search and filters
</button>
</div>
)}
</div>
{paginatedItems.length === 0 && (
<div className="flex flex-col gap-1 py-32 text-center text-content">
<p className="prose-body-base">
We couldn’t find any articles. Try different search terms or
filters.
</p>
<button
className="prose-headline-base-medium mx-auto w-fit text-link underline-offset-4 hover:underline"
onClick={handleClearFilter}
>
Clear search and filters
</button>
</div>
)}
</>
)
}

0 comments on commit 095b4e4

Please sign in to comment.