From 67b6043616f4bfea3cc638adebbd22616464037b Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 1 May 2022 14:29:48 +0430 Subject: [PATCH] update App.js, src/components/BreadCrumb/index.js and src/components/ReactTable4/index.js --- src/App.js | 4 ++-- src/components/ReactTable4/index.js | 31 +++++------------------------ 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/src/App.js b/src/App.js index 9c9cf4a..fffa021 100644 --- a/src/App.js +++ b/src/App.js @@ -209,9 +209,9 @@ function App() { - {/* */} + - {/* */} + {/* ----------------------------$$$ start---------------------------- */} {/* diff --git a/src/components/ReactTable4/index.js b/src/components/ReactTable4/index.js index 8534a8e..7bd174b 100644 --- a/src/components/ReactTable4/index.js +++ b/src/components/ReactTable4/index.js @@ -7,10 +7,9 @@ import TitleSubtitle from "../TitleSubtitle"; import MultiRangeInput from "./MultiRangeInput"; -import grayLeftArrow from "./gray-arrow-left.svg"; -import { BreadCrumb } from "../BreadCrumb"; +import BreadCrumb from "../BreadCrumb"; -const ReactTable4 = ({ breadCrumbs, subTitle, title }) => { +const ReactTable4 = ({ breadCrumbs }) => { const [tabs, setTabs] = useState([ { name: "جدول " + breadCrumbs[breadCrumbs.length - 1].name, id: 0 }, ]); @@ -38,26 +37,9 @@ const ReactTable4 = ({ breadCrumbs, subTitle, title }) => {
{/* breadCrumb */}
- {breadCrumbs.map((breadCrumb, index) => ( -
- - {breadCrumb.name} - - {Number(index) !== breadCrumbs.length - 1 && ( -
- -
- )} -
- ))} + + {console.log("mahdi")} + {console.log(BreadCrumb)}
@@ -94,7 +76,4 @@ ReactTable4.defaultProps = { active: true, }, ], - - title: "میزان فروش محصولات", - subTitle: "اطلاعات جداول مشخصاتی کارکنان مجموعه ایران تایر", };