diff --git a/src/components/Folderlist/index.js b/src/components/Folderlist/index.js index 6436dc6..5e14b8f 100644 --- a/src/components/Folderlist/index.js +++ b/src/components/Folderlist/index.js @@ -10,6 +10,7 @@ import more from "./images/more.svg"; import pic1 from "./images/profile-pic1.svg"; import pic2 from "./images/profile-pic2.svg"; import pic3 from "./images/profile-pic3.svg"; +import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; const Folderlists = ({ items }) => { return ( @@ -38,12 +39,7 @@ const Folderlists = ({ items }) => { > {items.map((item, index) => (
{ if (window.isDown) return e.preventDefault(); ///do here @@ -52,32 +48,36 @@ const Folderlists = ({ items }) => { key={index} >
- +
+ - {item.users.slice(0, 8).map((user, i) => ( + {/* {item.users.slice(0, 8).map((user, i) => ( - ))}{" "} + ))} */}
-

+

{item.title}

-

+

{item.memory} گیگابایت

-

+

{item.fileNum} فایل

@@ -96,7 +96,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [], + num: 4, }, { icon: folder, @@ -104,14 +104,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [ - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - ], + num: 2, }, { icon: folder, @@ -119,20 +112,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [ - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - { - picture: pic2, - name: "سعید", - fname: "سعیدی", - product: "کتاب ریاضی کلاس دوم", - }, - ], + num: 3, }, { icon: folder, @@ -140,44 +120,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [ - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - { - picture: pic2, - name: "سعید", - fname: "سعیدی", - product: "کتاب ریاضی کلاس دوم", - }, - { - picture: pic3, - name: "محمد", - fname: "محمدی", - product: "کتاب فیزیک کلاس سول", - }, - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - { - picture: pic2, - name: "سعید", - fname: "سعیدی", - product: "کتاب ریاضی کلاس دوم", - }, - { - picture: pic3, - name: "محمد", - fname: "محمدی", - product: "کتاب فیزیک کلاس سول", - }, - ], + num: 1, }, { icon: folder, @@ -185,7 +128,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [], + num: 5, }, { icon: folder, @@ -193,14 +136,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [ - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - ], + num: 2, }, { icon: folder, @@ -208,20 +144,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [ - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - { - picture: pic2, - name: "سعید", - fname: "سعیدی", - product: "کتاب ریاضی کلاس دوم", - }, - ], + num: 1, }, { icon: folder, @@ -229,44 +152,7 @@ Folderlists.defaultProps = { memory: 44, fileNum: 344, dropDownIcon: more, - users: [ - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - { - picture: pic2, - name: "سعید", - fname: "سعیدی", - product: "کتاب ریاضی کلاس دوم", - }, - { - picture: pic3, - name: "محمد", - fname: "محمدی", - product: "کتاب فیزیک کلاس سول", - }, - { - picture: pic1, - name: "مهدی", - fname: "عندلیب", - product: "کتاب ریاضی کلاس اول", - }, - { - picture: pic2, - name: "سعید", - fname: "سعیدی", - product: "کتاب ریاضی کلاس دوم", - }, - { - picture: pic3, - name: "محمد", - fname: "محمدی", - product: "کتاب فیزیک کلاس سول", - }, - ], + num: 3, }, ], };