diff options
| author | Rafi Zadanly <rafizadanly@gmail.com> | 2022-11-19 13:55:00 +0700 |
|---|---|---|
| committer | Rafi Zadanly <rafizadanly@gmail.com> | 2022-11-19 13:55:00 +0700 |
| commit | 40bab7be1e0025c7c089e1eac17451ef155a989a (patch) | |
| tree | 5a87f4fd87f3c6bc0823e58614dd93ca6c97d2c8 /src/pages/shop/search.js | |
| parent | 679e565b4594bd172f2576926567a740760ff55e (diff) | |
Add page transition
Diffstat (limited to 'src/pages/shop/search.js')
| -rw-r--r-- | src/pages/shop/search.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/shop/search.js b/src/pages/shop/search.js index ce76f88e..d0917666 100644 --- a/src/pages/shop/search.js +++ b/src/pages/shop/search.js @@ -1,5 +1,6 @@ import axios from "axios"; import Header from "../../components/Header"; +import Layout from "../../components/Layout"; import Pagination from "../../components/Pagination"; import ProductCard from "../../components/ProductCard"; import FilterIcon from "../../icons/filter.svg"; @@ -19,7 +20,7 @@ export default function ShopSearch({ searchResults, q, page }) { return ( <> <Header title={`Jual ${q} - Indoteknik`} /> - <main> + <Layout key={`/shop/search?q=${q}&page=${page}`}> <div className="p-4"> <div className="flex justify-between items-center gap-x-2 mb-1"> <h1>Produk</h1> @@ -54,7 +55,7 @@ export default function ShopSearch({ searchResults, q, page }) { <Pagination pageCount={pageCount} currentPage={parseInt(page)} url={`/shop/search?q=${q}`} /> </div> </div> - </main> + </Layout> </> ) }
\ No newline at end of file |
