Components/Output/PaymentsTable: disable pagination

This commit is contained in:
vchikalkin 2023-04-21 13:01:05 +03:00
parent 910c5627d2
commit c9a9f3a66d
2 changed files with 12 additions and 6 deletions

View File

@ -10,19 +10,25 @@ const PaymentsTable = observer(() => {
const { $results, $process } = useStore();
const unlimited = $process.has('Unlimited');
const dataSource = toJS($results.payments);
const dataColumns = !unlimited ? columns.filter((x) => !x.key.includes('_')) : columns;
return (
<Table
columns={!unlimited ? columns.filter((x) => !x.key.includes('_')) : columns}
dataSource={toJS($results.payments)}
columns={dataColumns}
dataSource={dataSource}
size="small"
pagination={{
defaultPageSize: 12,
pageSizeOptions: [12, MAX_LEASING_PERIOD],
defaultPageSize: MAX_LEASING_PERIOD,
hideOnSinglePage: true,
responsive: true,
// showLessItems: true,
showSizeChanger: false,
}}
scroll={{
x: true,
x: dataColumns.length > 4 && 1000,
y: 630,
}}
/>
);

View File

@ -42,7 +42,7 @@ const Wrapper = styled(Background)`
${min('laptop')} {
padding: 4px 18px;
min-height: 641px;
min-height: 790px;
}
`;