Carousel links + press "Enter" to search (pu juste le boutton)

This commit is contained in:
Victor Turgeon
2022-10-30 13:13:34 -07:00
parent 52a890fd6e
commit 2f14c6a842
3 changed files with 27 additions and 20 deletions

View File

@@ -31,8 +31,7 @@ const Morceaux = () => {
const response = await fetch(url);
const json = await response.json();
if (json.length > 0)
setProducts([...json]);
setProducts([...json]);
}
@@ -123,11 +122,6 @@ const Morceaux = () => {
</div>
<div className={isLoading ? "cat-load" : "d-none cat-load"} />
<script type="text/javascript" async src="https://tenor.com/embed.js"></script>
{/* <div>
{!isSearch && <Button onClick={handleNextItems} className='btn-load-more'>
...
</Button>}
</div> */}
</div>
);
}