Add a no results message to the item search page

This commit is contained in:
Emi Matchu 2021-01-21 16:39:43 -08:00
parent d0f133acda
commit 82c1eefb13

View file

@ -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">