-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/UtkarshBirla28/ecommerce-store
- Loading branch information
Showing
58 changed files
with
4,401 additions
and
936 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 |
---|---|---|
@@ -1 +1,7 @@ | ||
NEXT_PUBLIC_API_URL=https://indiekart-admin.vercel.app/api/e6894349-55f6-4f50-812e-79b1c5614acf | ||
NEXT_PUBLIC_API_URL=https://indiekart-admin.vercel.app/api/API_KEY_COPIED_FROM_ADMIN_DASHBOARD | ||
|
||
# on gitbash run "npx auth secret" and paste it in AUTH_SECRET | ||
AUTH_SECRET= | ||
|
||
AUTH_GITHUB_ID= | ||
AUTH_GITHUB_SECRET= |
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,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules\\typescript\\lib" | ||
} |
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
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 |
---|---|---|
@@ -1,25 +1,40 @@ | ||
import React from "react"; | ||
|
||
interface Product { | ||
name: string; | ||
color: string; | ||
size: string; | ||
price: string; | ||
// Add more properties as needed | ||
} | ||
|
||
interface CartItemInfoProps { | ||
product: Record<string, any>; | ||
product: Product; | ||
} | ||
export interface QuantityDetail { | ||
id: string; | ||
quantity: number; | ||
// Add more properties as needed | ||
} | ||
|
||
|
||
const CartItemInfo: React.FC<CartItemInfoProps> = ({ | ||
product | ||
}) => { | ||
return ( | ||
const CartItemInfo: React.FC<CartItemInfoProps> = ({ product }) => { | ||
return ( | ||
<div> | ||
<div className="flex justify-between"> | ||
<p className=" text-sm font-semibold text-black"> | ||
{product.name} | ||
</p> | ||
<p className="text-sm font-semibold text-black">{product.name}</p> | ||
</div> | ||
|
||
<div className="mt-1 flex text-sm"> | ||
<p className="text-gray-500">{product.color}</p> | ||
<p className="ml-4 border-l border-gray-200 pl-4 text-gray-500">{product.size}</p> | ||
<p className="ml-4 border-l border-gray-200 pl-4 text-gray-500"> | ||
{product.size} | ||
</p> | ||
</div> | ||
<p className="mt-1 text-sm font-medium text-gray-900">{product.price}</p> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
export default CartItemInfo; | ||
|
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
Oops, something went wrong.