Add a no results message to the item search page
This commit is contained in:
parent
d0f133acda
commit
82c1eefb13
1 changed files with 12 additions and 0 deletions
|
@ -170,6 +170,18 @@ function ItemSearchPageResults({ query: latestQuery }) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.itemSearch.items.length === 0) {
|
||||||
|
return (
|
||||||
|
<Box>
|
||||||
|
We couldn't find any matching items{" "}
|
||||||
|
<span role="img" aria-label="(thinking emoji)">
|
||||||
|
🤔
|
||||||
|
</span>{" "}
|
||||||
|
Try again?
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<Wrap justify="center" spacing="4">
|
<Wrap justify="center" spacing="4">
|
||||||
|
|
Loading…
Reference in a new issue