refactor: make count count dyna,ic in profile
This commit is contained in:
@@ -44,15 +44,15 @@ export default function ProfilePage() {
|
||||
<div className="p-6 sm:text-xl border">
|
||||
All Orders{" "}
|
||||
<h2 className="text-lg sm:text-2xl font-semibold">
|
||||
{profileData.orders || 0}
|
||||
{profileData.order_count || 0}
|
||||
</h2>
|
||||
</div>
|
||||
<div className="p-6 border rounded-md sm:text-xl ">
|
||||
{/* <div className="p-6 border rounded-md sm:text-xl ">
|
||||
Addresses{" "}
|
||||
<h2 className="text-lg sm:text-2xl font-semibold">
|
||||
{profileData.addresses || 0}
|
||||
</h2>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
<h1 className="text-2xl font-bold mb-4 mt-4">Profile information</h1>
|
||||
<div className="bg-white shadow-md rounded p-6">
|
||||
|
||||
Reference in New Issue
Block a user