From 76cffb16de04af2bff82bea3476bcee714799578 Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Sun, 25 Aug 2024 18:19:03 -0400 Subject: [PATCH] formatting --- beszel/site/src/components/ui/table.tsx | 152 ++++++++++-------------- 1 file changed, 63 insertions(+), 89 deletions(-) diff --git a/beszel/site/src/components/ui/table.tsx b/beszel/site/src/components/ui/table.tsx index 7f3502f..8146200 100644 --- a/beszel/site/src/components/ui/table.tsx +++ b/beszel/site/src/components/ui/table.tsx @@ -1,117 +1,91 @@ -import * as React from "react" +import * as React from 'react' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' -const Table = React.forwardRef< - HTMLTableElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
- - -)) -Table.displayName = "Table" +const Table = React.forwardRef>( + ({ className, ...props }, ref) => ( +
+
+ + ) +) +Table.displayName = 'Table' const TableHeader = React.forwardRef< - HTMLTableSectionElement, - React.HTMLAttributes + HTMLTableSectionElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( - + )) -TableHeader.displayName = "TableHeader" +TableHeader.displayName = 'TableHeader' const TableBody = React.forwardRef< - HTMLTableSectionElement, - React.HTMLAttributes + HTMLTableSectionElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( - + )) -TableBody.displayName = "TableBody" +TableBody.displayName = 'TableBody' const TableFooter = React.forwardRef< - HTMLTableSectionElement, - React.HTMLAttributes + HTMLTableSectionElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( - tr]:last:border-b-0", - className - )} - {...props} - /> + tr]:last:border-b-0', className)} + {...props} + /> )) -TableFooter.displayName = "TableFooter" +TableFooter.displayName = 'TableFooter' -const TableRow = React.forwardRef< - HTMLTableRowElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( - -)) -TableRow.displayName = "TableRow" +const TableRow = React.forwardRef>( + ({ className, ...props }, ref) => ( + + ) +) +TableRow.displayName = 'TableRow' const TableHead = React.forwardRef< - HTMLTableCellElement, - React.ThHTMLAttributes + HTMLTableCellElement, + React.ThHTMLAttributes >(({ className, ...props }, ref) => ( -
+ )) -TableHead.displayName = "TableHead" +TableHead.displayName = 'TableHead' const TableCell = React.forwardRef< - HTMLTableCellElement, - React.TdHTMLAttributes + HTMLTableCellElement, + React.TdHTMLAttributes >(({ className, ...props }, ref) => ( - + )) -TableCell.displayName = "TableCell" +TableCell.displayName = 'TableCell' const TableCaption = React.forwardRef< - HTMLTableCaptionElement, - React.HTMLAttributes + HTMLTableCaptionElement, + React.HTMLAttributes >(({ className, ...props }, ref) => ( -
+ )) -TableCaption.displayName = "TableCaption" +TableCaption.displayName = 'TableCaption' -export { - Table, - TableHeader, - TableBody, - TableFooter, - TableHead, - TableRow, - TableCell, - TableCaption, -} +export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption }