c9a664869c
- Replace custom invoice items table with responsive DataTable component - Fix server/client component error by creating InvoiceItemsTable client component - Merge danger zone with actions sidebar and use destructive button variant - Standardize button text sizing across all action buttons - Remove false claims from homepage (testimonials, ratings, fake user counts) - Focus homepage messaging on freelancers with honest feature descriptions - Fix dark mode support throughout app by replacing hard-coded colors with semantic classes - Remove aggressive red styling from settings, add subtle red accents only - Align import/export buttons and improve delete confirmation UX - Update dark mode background to have subtle green tint instead of pure black - Fix HTML nesting error in AlertDialog by using div instead of nested p tags This update makes the invoice view properly responsive, removes misleading marketing claims, and ensures consistent dark mode support across the entire application.
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
"use client";
|
|
|
|
import { api } from "~/trpc/react";
|
|
import { DataTableSkeleton } from "~/components/data/data-table";
|
|
import { BusinessesDataTable } from "./businesses-data-table";
|
|
|
|
export function BusinessesTable() {
|
|
const { data: businesses, isLoading } = api.businesses.getAll.useQuery();
|
|
|
|
if (isLoading) {
|
|
return <DataTableSkeleton columns={6} rows={8} />;
|
|
}
|
|
|
|
if (!businesses) {
|
|
return null;
|
|
}
|
|
|
|
return <BusinessesDataTable businesses={businesses} />;
|
|
}
|