diff --git a/src/App.js b/src/App.js index 30e0831..fd9d97d 100644 --- a/src/App.js +++ b/src/App.js @@ -164,8 +164,8 @@ function App() { {/* */} {/* */} - - + {/* */} + {/* */} {/* */} {/* */} @@ -181,7 +181,7 @@ function App() { {/* */} {/* ----------------------------$$$ start---------------------------- */} - {/* */} + {/* */} {/* */} {/* */} @@ -265,7 +265,7 @@ function App() { {/* */} {/* ----------------------------$$$ end---------------------------- */} - + {/* */} {/* */} diff --git a/src/components/BreadCrumb/index.js b/src/components/BreadCrumb/index.js index d55a039..86ec768 100644 --- a/src/components/BreadCrumb/index.js +++ b/src/components/BreadCrumb/index.js @@ -9,16 +9,23 @@ const BreadCrumb = ({ breadCrumbs }) => { {breadCrumbs.map((breadCrumb, index) => (
{breadCrumb.name} - {console.log(breadCrumb.active)} + {/* {console.log(breadCrumb.active)} */} {Number(index) !== breadCrumbs.length - 1 && (
- {console.log(breadCrumbs.length - 1)} + {/* {console.log(breadCrumbs)} + {console.log(breadCrumbs[breadCrumbs.length - 1])} + {console.log( + breadCrumb.length ? "text-red-900" : "text-blue-400" + )} */} + {/* {breadCrumb.active === true ? ( ) : ( @@ -43,19 +50,15 @@ BreadCrumb.defaultProps = { breadCrumbs: [ { name: "صفحه اصلی", - active: false, }, { name: "آمار و گزارشات", - active: false, }, { name: "فروش محصولات", - active: false, }, { name: "سال 1400", - active: true, }, ], };