Components/Output/PaymentsTable: disable pagination
This commit is contained in:
parent
910c5627d2
commit
c9a9f3a66d
@ -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,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
@ -42,7 +42,7 @@ const Wrapper = styled(Background)`
|
||||
|
||||
${min('laptop')} {
|
||||
padding: 4px 18px;
|
||||
min-height: 641px;
|
||||
min-height: 790px;
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user