Skip to content

Commit

Permalink
Delete component in omitted TablePagination props
Browse files Browse the repository at this point in the history
1. Without the `component ='div'` property, TablePagination component does not stretch to the full width of the table.
2. Instead of writing `component ='div'` each time we call TablePagination, we set it in our default ThemeOptions
3. The deleted code prevents us from adding `component` as a prop to our default ThemeOptions
  • Loading branch information
westoncolemanl authored Jun 2, 2022
1 parent 1b01716 commit 29e3b75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ declare const TablePagination: OverridableComponent<
TablePaginationTypeMap<{}, React.JSXElementConstructor<TablePaginationBaseProps>>
>;

export type TablePaginationBaseProps = Omit<TableCellProps, 'classes' | 'component' | 'children'>;
export type TablePaginationBaseProps = Omit<TableCellProps, 'classes' | 'children'>;

export type TablePaginationProps<
D extends React.ElementType = React.JSXElementConstructor<TablePaginationBaseProps>,
Expand Down

0 comments on commit 29e3b75

Please sign in to comment.