|
|
|
@ -8,7 +8,7 @@ import MultiRangeInput from "./MultiRangeInput"; |
|
|
|
|
import grayLeftArrow from "./gray-arrow-left.svg"; |
|
|
|
|
import { BreadCrumb } from "../BreadCrumb"; |
|
|
|
|
|
|
|
|
|
const ReactTable5 = ({ breadCrumbs, subTitle, title }) => { |
|
|
|
|
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 }) => { |
|
|
|
|
<div className="my-10 w-11/12 mx-auto"> |
|
|
|
|
{/* breadCrumb */} |
|
|
|
|
<div className="flex flex-row items-center"> |
|
|
|
|
{breadCrumbs.map((breadCrumb, index) => ( |
|
|
|
|
<div className="flex flex-row items-center" key={index}> |
|
|
|
|
<span |
|
|
|
|
className={`cursor-pointer text-xs hover:text-blue-900 ${ |
|
|
|
|
breadCrumb.active ? "text-blue-900" : "text-blue-400" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
{breadCrumb.name} |
|
|
|
|
</span> |
|
|
|
|
{Number(index) !== breadCrumbs.length - 1 && ( |
|
|
|
|
<div |
|
|
|
|
className={`mx-2 ${ |
|
|
|
|
{breadCrumb && |
|
|
|
|
breadCrumbs.map((breadCrumb, index) => ( |
|
|
|
|
<div className="flex flex-row items-center" key={index}> |
|
|
|
|
<span |
|
|
|
|
className={`cursor-pointer text-xs hover:text-blue-900 ${ |
|
|
|
|
breadCrumb.active ? "text-blue-900" : "text-blue-400" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
<img src={grayLeftArrow} /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
))} |
|
|
|
|
{breadCrumb.name} |
|
|
|
|
</span> |
|
|
|
|
{Number(index) !== breadCrumbs.length - 1 && ( |
|
|
|
|
<div |
|
|
|
|
className={`mx-2 ${ |
|
|
|
|
breadCrumb.active ? "text-blue-900" : "text-blue-400" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
<img src={grayLeftArrow} /> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
))} |
|
|
|
|
</div> |
|
|
|
|
<div className="my-7"> |
|
|
|
|
<TitleSubtitle /> |
|
|
|
|
<TitleSubtitle titleShow={false} subTitleShow={false} /> |
|
|
|
|
</div> |
|
|
|
|
<BasicTable |
|
|
|
|
addTab={addTab} |
|
|
|
@ -92,6 +93,5 @@ ReactTable5.defaultProps = { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
title: "میزان فروش محصولات", |
|
|
|
|
subTitle: "اطلاعات جداول مشخصاتی کارکنان مجموعه ایران تایر", |
|
|
|
|
breadCrumb: false, |
|
|
|
|
}; |
|
|
|
|