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 /> */}
{/* <ProductSuggestion /> */}
{/* <ProductImage /> */}
{/* <ProductTab /> */}
<ProductTab />
{/* <ProductStatusCard /> */}
{/* <AdvertisementDesign1 /> */}
{/* <AdvertisementDesign2 /> */}

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

Loading…
Cancel
Save