From 1b4d8bd45f3dbb06f6e0c909d4304b2f573847d3 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Wed, 2 Nov 2016 15:07:20 -0600 Subject: [PATCH] Fix pagination not showing with 0 pagesLength --- example/src/app.js | 2 +- example/zab.json | 6 +++++- src/index.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/example/src/app.js b/example/src/app.js index dbd8c03..b0f92b4 100644 --- a/example/src/app.js +++ b/example/src/app.js @@ -13,5 +13,5 @@ Render(null, ( ), { - useHash: true + useHash: false }) diff --git a/example/zab.json b/example/zab.json index 1e205a3..cb62a4b 100644 --- a/example/zab.json +++ b/example/zab.json @@ -1,4 +1,8 @@ { "name": "react-table", - "root": "dist" + "root": "dist", + "routes": [{ + "src": "/**", + "dest": "index.html" + }] } diff --git a/src/index.js b/src/index.js index e60648d..9ad899f 100644 --- a/src/index.js +++ b/src/index.js @@ -416,7 +416,7 @@ export default React.createClass({ })} - {this.props.showPagination && pagesLength > 1 && ( + {this.props.showPagination && (