playbook_ui 14.5.0.pre.rc.6 → 14.5.0.pre.rc.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2320898ed4171121a268e62bfac933bf34c936ed7bbd1eadc3d815a8225caa13
4
- data.tar.gz: d05a4ddd57b7b7bdccbaf306bd639bbfb81c380a742cbf9ab7e09eb37e27eee4
3
+ metadata.gz: 33ef2240decffa4b8afdca5d241ca43a0d6195049579f814f3c206e0616b36e0
4
+ data.tar.gz: 96bb3204647ae8c8907eab771d446338cd2bd20042ea5ca3e7a05b891b9c43a6
5
5
  SHA512:
6
- metadata.gz: d607e925a8f9672e7d120802051762cd82b3367bacebd96cacd396f117bd5e89a6d67c659b3b7f42b8033b724dfc86de56d754940e358092b8fd1dd87b344c38
7
- data.tar.gz: 3b54a1ac3358502f0f6555bbbe936d5db88a6650089fb6f631c8235da55b3fefa963099e84f025bb2585a74d0e3b64c7e6e8351f88b7a5596ef389d3bca19a40
6
+ metadata.gz: 15ad5084d6bcf802be7c4c67c6d8a91cb03425fd1421a9eabc4310a844ed461ba6828e921037fb176df5f09bd17c85741525b5e0464228b69199fb5e7ad97c1c
7
+ data.tar.gz: 1b6875f325d3226739eebc6a6abde3b4299d3f23001597b4f3facef029e62c91b4bc3ab0e4de22b27709a5686fde38f2144f74a299b39474b098c59716ba84f6
@@ -22,6 +22,16 @@ const PaginationPageChange = (props) => {
22
22
 
23
23
  return (
24
24
  <div className="App">
25
+ <Pagination
26
+ current={activePage}
27
+ key={`pagination-top-${activePage}`}
28
+ marginBottom="xs"
29
+ onChange={onPageChange}
30
+ range={5}
31
+ total={totalPages}
32
+ {...props}
33
+ />
34
+
25
35
  <Table
26
36
  marginBottom="xs"
27
37
  responsive="none"
@@ -49,7 +59,8 @@ const PaginationPageChange = (props) => {
49
59
  </Table>
50
60
 
51
61
  <Pagination
52
- current={1}
62
+ current={activePage}
63
+ key={`pagination-bottom-${activePage}`}
53
64
  onChange={onPageChange}
54
65
  range={5}
55
66
  total={totalPages}
@@ -1 +1,3 @@
1
- You can use the `onChange` prop to control the data of your table. This prop is callback function that will allow you control the state.
1
+ You can use the `onChange` prop to control the data of your table. This prop is callback function that will allow you control the state.
2
+
3
+ To ensure synchronization between multiple pagination components on a single page, use unique, dynamic keys for each pagination instance. Each Pagination component should have its own dynamic key that reflects the current active page: this example uses `pagination-top-${activePage}` and `pagination-bottom-${activePage}`.