From 55219ee6ab141918546bbf4f60f5b256fce26402 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 1 May 2022 14:13:54 +0430 Subject: [PATCH] update App.js, src/components/BreadCrumb/index.js and src/components/FileManager/index.js --- src/App.js | 4 +- src/components/BreadCrumb/index.js | 58 ++++++++++++++--------------- src/components/FileManager/index.js | 8 ++-- 3 files changed, 34 insertions(+), 36 deletions(-) diff --git a/src/App.js b/src/App.js index 5df8b0a..9c9cf4a 100644 --- a/src/App.js +++ b/src/App.js @@ -187,7 +187,7 @@ function App() { {/* */} {/* ----------------------------$$$ end---------------------------- */} - + {/* */} {/* */} {/* ----------------------------$$$ start---------------------------- */} @@ -207,7 +207,7 @@ function App() { {/* */} {/* ----------------------------$$$ end---------------------------- */} - {/* */} + {/* */} diff --git a/src/components/BreadCrumb/index.js b/src/components/BreadCrumb/index.js index b09ec4f..d55a039 100644 --- a/src/components/BreadCrumb/index.js +++ b/src/components/BreadCrumb/index.js @@ -5,36 +5,34 @@ import blackLeftArrow from "./black-arrow-left.svg"; const BreadCrumb = ({ breadCrumbs }) => { return ( -
-
- {breadCrumbs.map((breadCrumb, index) => ( -
- - {breadCrumb.name} - {console.log(breadCrumb.active)} - - {Number(index) !== breadCrumbs.length - 1 && ( -
- {console.log(breadCrumbs.length - 1)} - {/* {breadCrumb.active === true ? ( - - ) : ( - - )} */} - {Number(index) === breadCrumbs.length - 2 ? ( - - ) : ( - - )} -
- )} -
- ))} -
+
+ {breadCrumbs.map((breadCrumb, index) => ( +
+ + {breadCrumb.name} + {console.log(breadCrumb.active)} + + {Number(index) !== breadCrumbs.length - 1 && ( +
+ {console.log(breadCrumbs.length - 1)} + {/* {breadCrumb.active === true ? ( + + ) : ( + + )} */} + {Number(index) === breadCrumbs.length - 2 ? ( + arrow + ) : ( + arrow + )} +
+ )} +
+ ))}
); }; diff --git a/src/components/FileManager/index.js b/src/components/FileManager/index.js index 7c458a4..fdd11cf 100644 --- a/src/components/FileManager/index.js +++ b/src/components/FileManager/index.js @@ -29,7 +29,7 @@ const FileManager = () => { {/* ? pageTitle & searchbox */}
{/* ? pageTitle */} - + {/* ? searchbox */}
@@ -50,7 +50,7 @@ const FileManager = () => {
{/* ? pageTitle */}
- +
{/* buttons */}
@@ -99,11 +99,11 @@ const FileManager = () => {
{/* left Section */}
- +
- +
{/* {[0, 1, 2].map((item, index) => (