diff options
| author | Rafi Zadanly <rafizadanly@gmail.com> | 2022-12-01 16:26:21 +0700 |
|---|---|---|
| committer | Rafi Zadanly <rafizadanly@gmail.com> | 2022-12-01 16:26:21 +0700 |
| commit | 0a0c497204acbac562700d80f38e74aa9ffcd94e (patch) | |
| tree | 3c2387091b0733d33754fbc07d843f2deef2fa9e /src/pages/shop/search.js | |
| parent | 9e1321f7e35a58ba8ce136401a217d835aef15f0 (diff) | |
dynamic filter, dynamic pagination, detail brand, to title case
Diffstat (limited to 'src/pages/shop/search.js')
| -rw-r--r-- | src/pages/shop/search.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pages/shop/search.js b/src/pages/shop/search.js index 6b24f2a9..2ae3cca4 100644 --- a/src/pages/shop/search.js +++ b/src/pages/shop/search.js @@ -6,7 +6,6 @@ import ProductCard from "../../components/ProductCard"; import FilterIcon from "../../icons/filter.svg"; import { useState } from "react"; import Filter from "../../components/Filter"; -import { useRouter } from "next/router"; export async function getServerSideProps(context) { const { @@ -42,8 +41,6 @@ export default function ShopSearch({ price_to, order_by }) { - const router = useRouter(); - const pageCount = Math.ceil(searchResults.response.numFound / searchResults.responseHeader.params.rows); const productStart = searchResults.responseHeader.params.start; const productRows = searchResults.responseHeader.params.rows; |
