From 40bab7be1e0025c7c089e1eac17451ef155a989a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 19 Nov 2022 13:55:00 +0700 Subject: Add page transition --- src/pages/shop/brands.js | 5 +++-- src/pages/shop/product/[slug].js | 5 +++-- src/pages/shop/search.js | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/pages/shop') diff --git a/src/pages/shop/brands.js b/src/pages/shop/brands.js index 797843ee..499eaf99 100644 --- a/src/pages/shop/brands.js +++ b/src/pages/shop/brands.js @@ -7,6 +7,7 @@ import { createSlug } from "../../helpers/slug"; import InfiniteScroll from "react-infinite-scroll-component"; import { useState } from "react"; import Spinner from "../../components/Spinner"; +import Layout from "../../components/Layout"; export async function getServerSideProps() { let initialManufactures = await apiOdoo('GET', '/api/v1/manufacture?limit=31'); @@ -25,7 +26,7 @@ export default function Brands({ initialManufactures }) { return ( <>
-
+

Semua Brand di Indoteknik

-
+ ) } \ No newline at end of file diff --git a/src/pages/shop/product/[slug].js b/src/pages/shop/product/[slug].js index a42e6cb9..923962e2 100644 --- a/src/pages/shop/product/[slug].js +++ b/src/pages/shop/product/[slug].js @@ -8,6 +8,7 @@ import currencyFormat from "../../../helpers/currencyFormat"; import { LazyLoadImage } from "react-lazy-load-image-component"; import "react-lazy-load-image-component/src/effects/blur.css"; import ProductSlider from "../../../components/product/ProductSlider"; +import Layout from "../../../components/Layout"; export async function getServerSideProps(context) { const { slug } = context.query; @@ -80,7 +81,7 @@ export default function ProductDetail({product}) { return ( <>
-
+
@@ -170,7 +171,7 @@ export default function ProductDetail({product}) {
-
+ ); } \ No newline at end of file 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 ( <>
-
+

Produk

@@ -54,7 +55,7 @@ export default function ShopSearch({ searchResults, q, page }) {
-
+ ) } \ No newline at end of file -- cgit v1.2.3