summaryrefslogtreecommitdiff
path: root/src/pages/shop/brands.js
diff options
context:
space:
mode:
authorRafi Zadanly <rafizadanly@gmail.com>2022-11-19 13:55:00 +0700
committerRafi Zadanly <rafizadanly@gmail.com>2022-11-19 13:55:00 +0700
commit40bab7be1e0025c7c089e1eac17451ef155a989a (patch)
tree5a87f4fd87f3c6bc0823e58614dd93ca6c97d2c8 /src/pages/shop/brands.js
parent679e565b4594bd172f2576926567a740760ff55e (diff)
Add page transition
Diffstat (limited to 'src/pages/shop/brands.js')
-rw-r--r--src/pages/shop/brands.js5
1 files changed, 3 insertions, 2 deletions
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 (
<>
<Header title='Semua Brand di Indoteknik' />
- <main className="p-4">
+ <Layout className='p-4' key='/shop/brands'>
<h1>Semua Brand di Indoteknik</h1>
<InfiniteScroll
dataLength={manufactures.length}
@@ -48,7 +49,7 @@ export default function Brands({ initialManufactures }) {
) : ''
))}
</InfiniteScroll>
- </main>
+ </Layout>
</>
)
} \ No newline at end of file