ui-soxo-bootstrap-core 2.6.46-dev.1 → 2.6.46-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect, useContext, useRef } from 'react';
2
2
 
3
- import { Table, Skeleton, Input, Modal, message, Pagination, Tag } from 'antd';
3
+ import { Table, Skeleton, Input, Modal, message, Tag } from 'antd';
4
4
 
5
5
  import { QrcodeOutlined } from '@ant-design/icons';
6
6
 
@@ -1057,7 +1057,14 @@ function GuestList({
1057
1057
  dataSource={filtered ? filtered : patients} // In case if there is no filtered values we can use patient data
1058
1058
  columns={cols}
1059
1059
  sticky
1060
- pagination={true}
1060
+ pagination={{
1061
+ current: pagination.current,
1062
+ pageSize: pagination.pageSize,
1063
+ total: pagination.total,
1064
+ showSizeChanger: true,
1065
+ pageSizeOptions: [20, 30, 50, 100],
1066
+ onChange: (page, pageSize) => handlePagination({ current: page, pageSize }),
1067
+ }}
1061
1068
  summary={(pageData) => {
1062
1069
  const summaryCols = columns.filter((col) => col.enable_summary);
1063
1070
  if (!summaryCols.length) return null;
@@ -1094,18 +1101,6 @@ function GuestList({
1094
1101
  />
1095
1102
  )}
1096
1103
 
1097
- {/* Pagination aligned to the right */}
1098
- <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: 8 }}>
1099
- <Pagination
1100
- showSizeChanger
1101
- current={pagination.current}
1102
- pageSize={pagination.pageSize}
1103
- total={pagination.total}
1104
- pageSizeOptions={[20, 30, 50, 100]}
1105
- onChange={(page, pageSize) => handlePagination({ current: page, pageSize })}
1106
- />
1107
- </div>
1108
-
1109
1104
  {/*If patient data exists show the number else to 0 */}
1110
1105
  <p className="size-hint">{patients ? patients.length : 0} records. </p>
1111
1106
  </Card>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-soxo-bootstrap-core",
3
- "version": "2.6.46-dev.1",
3
+ "version": "2.6.46-dev.2",
4
4
  "description": "All the Core Components for you to start",
5
5
  "keywords": [
6
6
  "all in one"