master
mahdi andalib 3 years ago
parent e0302c3e24
commit 7bce25ae94
  1. 2
      src/App.js
  2. 24
      src/components/FolderTree/index.js

@ -88,7 +88,7 @@ function App() {
{/* <Toast /> */} {/* <Toast /> */}
{/* <ProductSuggestion /> */} {/* <ProductSuggestion /> */}
{/* <ProductImage /> */} {/* <ProductImage /> */}
{/* <ProductTab /> */} <ProductTab />
{/* <ProductStatusCard /> */} {/* <ProductStatusCard /> */}
{/* <AdvertisementDesign1 /> */} {/* <AdvertisementDesign1 /> */}
{/* <AdvertisementDesign2 /> */} {/* <AdvertisementDesign2 /> */}

@ -47,17 +47,6 @@ const FolderTree = ({ items }) => {
</div> </div>
{activeDropdown === item && {activeDropdown === item &&
item.menuItems.map((menuItem, i) => ( item.menuItems.map((menuItem, i) => (
<div>
<button
onClick={() =>
setActiveDropdown(
activeDropdown === menuItem ? null : menuItem
)
}
className="transform translate-x-10"
>
mahdi
</button>
<div <div
key={i} key={i}
className="flex flex-row items-center mb-2 cursor-pointer mr-5" className="flex flex-row items-center mb-2 cursor-pointer mr-5"
@ -81,17 +70,12 @@ const FolderTree = ({ items }) => {
className=" transition-all duration-700" className=" transition-all duration-700"
/> />
) : ( ) : (
<img <img src={folder} className=" transition-all duration-700" />
src={folder}
className=" transition-all duration-700"
/>
)} )}
<span className="text-sm mr-2" style={{ color: "#00253A" }}> <span className="text-sm mr-2" style={{ color: "#00253A" }}>
{menuItem.title} {menuItem.title}
</span> </span>
</div> </div>
</div>
))} ))}
</div> </div>
))} ))}
@ -99,7 +83,8 @@ const FolderTree = ({ items }) => {
); );
}; };
// {item.menuItem.menuSubItems.map((menuSubItem, j) => ( // {
// item.menuItem.menuSubItems.map((menuSubItem, j) => (
// <div // <div
// key={j} // key={j}
// className="flex flex-row items-center mb-2 cursor-pointer mr-5" // className="flex flex-row items-center mb-2 cursor-pointer mr-5"
@ -110,7 +95,8 @@ const FolderTree = ({ items }) => {
// {menuSubItem.subTitle} // {menuSubItem.subTitle}
// </span> // </span>
// </div> // </div>
// ))} // ));
// }
export default FolderTree; export default FolderTree;

Loading…
Cancel
Save