Skip to content

Commit

Permalink
Merge pull request #4147 from beyondessential/master
Browse files Browse the repository at this point in the history
Master -> dev
  • Loading branch information
IgorNadj authored Sep 6, 2022
2 parents 1cc4cfa + bfe1ad5 commit b5e8a84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 141 deletions.

This file was deleted.

4 changes: 2 additions & 2 deletions packages/ui-components/src/components/Table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import MuiTable from '@material-ui/core/Table';
import { TablePaginator } from './TablePaginator';
import { TablePaginator, DEFAULT_ROWS_PER_PAGE_OPTIONS } from './TablePaginator';
import { TableHeader } from './TableHeader';
import { TableBody } from './TableBody';
import { TableMessageProvider } from './TableMessageProvider';
Expand Down Expand Up @@ -128,7 +128,7 @@ Table.defaultProps = {
order: 'asc',
page: null,
rowsPerPage: 10,
rowsPerPageOptions: null,
rowsPerPageOptions: DEFAULT_ROWS_PER_PAGE_OPTIONS,
rowIdKey: 'id',
className: null,
};
4 changes: 2 additions & 2 deletions packages/ui-components/src/components/Table/TablePaginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import styled from 'styled-components';
import PropTypes from 'prop-types';
import { tableColumnShape } from './tableColumnShape';

const ROWS_PER_PAGE_OPTIONS = [10, 25, 50];
export const DEFAULT_ROWS_PER_PAGE_OPTIONS = [10, 25, 50];

const TableFooter = styled(MuiTableFooter)`
.MuiTableCell-footer.MuiTablePagination-root {
Expand Down Expand Up @@ -125,6 +125,6 @@ TablePaginator.defaultProps = {
onChangeRowsPerPage: null,
page: null,
rowsPerPage: 10,
rowsPerPageOptions: ROWS_PER_PAGE_OPTIONS,
rowsPerPageOptions: DEFAULT_ROWS_PER_PAGE_OPTIONS,
isFetching: false,
};

0 comments on commit b5e8a84

Please sign in to comment.