Remove price column
This commit is contained in:
@@ -111,9 +111,6 @@ const ProductGrid = ({
|
|||||||
<td className="p-1 align-middle text-center">
|
<td className="p-1 align-middle text-center">
|
||||||
<Skeleton className="h-4 w-8 mx-auto" />
|
<Skeleton className="h-4 w-8 mx-auto" />
|
||||||
</td>
|
</td>
|
||||||
<td className="p-1 align-middle text-center hidden md:table-cell">
|
|
||||||
<Skeleton className="h-4 w-12 mx-auto" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -144,11 +141,6 @@ const ProductGrid = ({
|
|||||||
<Skeleton className="h-4 w-12" />
|
<Skeleton className="h-4 w-12" />
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th className="p-1.5 font-medium text-center sticky top-0 bg-white dark:bg-background z-10 hidden md:table-cell border-b">
|
|
||||||
<div className="inline-flex items-center justify-center w-full px-2 py-1 text-sm font-medium">
|
|
||||||
<Skeleton className="h-4 w-10" />
|
|
||||||
</div>
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="divide-y divide-gray-200 dark:divide-gray-800">
|
<tbody className="divide-y divide-gray-200 dark:divide-gray-800">
|
||||||
@@ -275,19 +267,6 @@ const ProductGrid = ({
|
|||||||
Orders
|
Orders
|
||||||
</button>
|
</button>
|
||||||
</th>
|
</th>
|
||||||
<th className="p-1.5 font-medium text-center sticky top-0 bg-white dark:bg-background z-10 hidden md:table-cell border-b">
|
|
||||||
<button
|
|
||||||
onClick={() => handleSort("price")}
|
|
||||||
className={cn(
|
|
||||||
"inline-flex items-center justify-center w-full px-2 py-1 text-sm font-medium transition-colors rounded-md",
|
|
||||||
sorting.column === "price"
|
|
||||||
? "bg-primary text-primary-foreground"
|
|
||||||
: "hover:bg-accent hover:text-accent-foreground"
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
Price
|
|
||||||
</button>
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="divide-y divide-gray-200 dark:divide-gray-800">
|
<tbody className="divide-y divide-gray-200 dark:divide-gray-800">
|
||||||
@@ -329,9 +308,6 @@ const ProductGrid = ({
|
|||||||
<td className="p-1 align-middle text-center text-muted-foreground text-sm">
|
<td className="p-1 align-middle text-center text-muted-foreground text-sm">
|
||||||
{product.orderCount}
|
{product.orderCount}
|
||||||
</td>
|
</td>
|
||||||
<td className="p-1 align-middle text-center hidden md:table-cell text-sm">
|
|
||||||
${product.price.toFixed(2)}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user