Skip to content

Commit

Permalink
feat(web/OrderTable): empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Dec 24, 2023
1 parent a67bc0f commit 1a8b837
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/nextjs/src/components/OrderTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ export default function OrderTable({
</TableRow>
</TableHeader>
<TableBody>
{data.length === 0 && (
<TableRow>
<TableCell colSpan={7} className="text-center">
No products need to be approved.
</TableCell>
</TableRow>
)}
{data.map((order) => (
<TableRow key={order.id}>
<TableCell className="line-clamp-1 font-medium">
Expand Down

0 comments on commit 1a8b837

Please sign in to comment.