-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update API logging and add product showcase component
- Loading branch information
1 parent
6010195
commit ce1980b
Showing
8 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,11 @@ const nextConfig = { | |
}, | ||
], | ||
}, | ||
logging: { | ||
fetches: { | ||
fullUrl: true, | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"use client"; | ||
|
||
import React from "react"; | ||
|
||
const ErrorPage = () => { | ||
return <div>ErrorPage</div>; | ||
}; | ||
|
||
export default ErrorPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./product.showcase"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { IProduct } from "@/types"; | ||
import React from "react"; | ||
import { ProductCard } from ".."; | ||
|
||
type Props = { | ||
title: string; | ||
products: IProduct[]; | ||
}; | ||
|
||
export const ProductShowCase = (props: Props) => { | ||
const { title, products } = props; | ||
|
||
return ( | ||
<div className="bg-white py-16"> | ||
<div className="container space-y-5"> | ||
<div className="flex items-center justify-between pb-2 border-b-2 gap-5 border-gray-100"> | ||
<h4 className="text-xl font-bold">{title}</h4> | ||
</div> | ||
<div className="flex flex-wrap"> | ||
{products?.map((product) => ( | ||
<ProductCard key={product.id} {...{ product }} /> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |