From 2d8ee5994b8774c526466d8430e793e42178848d Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Tue, 8 Mar 2022 13:44:07 +0330 Subject: [PATCH] update --- src/App.js | 2 +- src/components/ReactTable5/BasicTable.js | 31 ++++++++--------- src/components/ReactTable5/index.js | 42 ++++++++++++------------ 3 files changed, 36 insertions(+), 39 deletions(-) diff --git a/src/App.js b/src/App.js index def34a0..4f0ca6c 100644 --- a/src/App.js +++ b/src/App.js @@ -101,7 +101,7 @@ function App() { {/* */} {/* */} {/* */} - + {/* */} {/* */} {/* diff --git a/src/components/ReactTable5/BasicTable.js b/src/components/ReactTable5/BasicTable.js index 3bb9550..b3f9900 100644 --- a/src/components/ReactTable5/BasicTable.js +++ b/src/components/ReactTable5/BasicTable.js @@ -36,7 +36,8 @@ import { const BasicTable = ({ settingsIcon, thead, - listView, + goToPage, + showMore, addTab, tabs, delTab, @@ -356,7 +357,6 @@ const BasicTable = ({ )} - {/* GRID LIST */} {activeList === true && (
@@ -376,12 +376,16 @@ const BasicTable = ({
)} {/* bottom table */} - - + {goToPage && ( + + )} + {showMore && ( + + )} ) : ( { +const ReactTable5 = ({ breadCrumbs, breadCrumb }) => { const [tabs, setTabs] = useState([ { name: "جدول " + breadCrumbs[breadCrumbs.length - 1].name, id: 0 }, ]); @@ -35,29 +35,30 @@ const ReactTable5 = ({ breadCrumbs, subTitle, title }) => {
{/* breadCrumb */}
- {breadCrumbs.map((breadCrumb, index) => ( -
- - {breadCrumb.name} - - {Number(index) !== breadCrumbs.length - 1 && ( -
( +
+ - -
- )} -
- ))} + {breadCrumb.name} + + {Number(index) !== breadCrumbs.length - 1 && ( +
+ +
+ )} +
+ ))}
- +