Remove price column
This commit is contained in:
@@ -111,9 +111,6 @@ const ProductGrid = ({
|
||||
<td className="p-1 align-middle text-center">
|
||||
<Skeleton className="h-4 w-8 mx-auto" />
|
||||
</td>
|
||||
<td className="p-1 align-middle text-center hidden md:table-cell">
|
||||
<Skeleton className="h-4 w-12 mx-auto" />
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
|
||||
@@ -144,11 +141,6 @@ const ProductGrid = ({
|
||||
<Skeleton className="h-4 w-12" />
|
||||
</div>
|
||||
</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>
|
||||
</thead>
|
||||
<tbody className="divide-y divide-gray-200 dark:divide-gray-800">
|
||||
@@ -275,19 +267,6 @@ const ProductGrid = ({
|
||||
Orders
|
||||
</button>
|
||||
</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>
|
||||
</thead>
|
||||
<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">
|
||||
{product.orderCount}
|
||||
</td>
|
||||
<td className="p-1 align-middle text-center hidden md:table-cell text-sm">
|
||||
${product.price.toFixed(2)}
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user