Skip to content

Commit cd6c416

Browse files
committed
Removed variants from some of the table components
1 parent 0b0c7df commit cd6c416

File tree

1 file changed

+4
-8
lines changed
  • apps/webapp/app/components/primitives

1 file changed

+4
-8
lines changed

apps/webapp/app/components/primitives/Table.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ export const Table = forwardRef<HTMLTableElement, TableProps & { variant?: Table
6161
type TableHeaderProps = {
6262
className?: string;
6363
children: ReactNode;
64-
variant?: TableVariant;
6564
};
6665

67-
export const TableHeader = forwardRef<HTMLTableSectionElement, Omit<TableHeaderProps, "variant">>(
66+
export const TableHeader = forwardRef<HTMLTableSectionElement, TableHeaderProps>(
6867
({ className, children }, ref) => {
6968
const { variant } = useContext(TableContext);
7069
return (
@@ -102,10 +101,9 @@ type TableRowProps = {
102101
children: ReactNode;
103102
disabled?: boolean;
104103
isSelected?: boolean;
105-
variant?: TableVariant;
106104
};
107105

108-
export const TableRow = forwardRef<HTMLTableRowElement, Omit<TableRowProps, "variant">>(
106+
export const TableRow = forwardRef<HTMLTableRowElement, TableRowProps>(
109107
({ className, disabled, isSelected, children }, ref) => {
110108
const { variant } = useContext(TableContext);
111109
return (
@@ -184,11 +182,10 @@ type TableCellProps = TableCellBasicProps & {
184182
rowHoverStyle?: string;
185183
isSelected?: boolean;
186184
isTabbableCell?: boolean;
187-
variant?: TableVariant;
188185
children?: ReactNode;
189186
};
190187

191-
export const TableCell = forwardRef<HTMLTableCellElement, Omit<TableCellProps, "variant">>(
188+
export const TableCell = forwardRef<HTMLTableCellElement, TableCellProps>(
192189
(
193190
{
194191
className,
@@ -294,7 +291,7 @@ export const TableCellChevron = forwardRef<
294291

295292
export const TableCellMenu = forwardRef<
296293
HTMLTableCellElement,
297-
Omit<TableCellProps, "variant"> & {
294+
TableCellProps & {
298295
className?: string;
299296
isSticky?: boolean;
300297
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
@@ -303,7 +300,6 @@ export const TableCellMenu = forwardRef<
303300
popoverContent?: ReactNode;
304301
children?: ReactNode;
305302
isSelected?: boolean;
306-
variant?: TableVariant;
307303
}
308304
>(
309305
(

0 commit comments

Comments
 (0)