Changeset View
Changeset View
Standalone View
Standalone View
web/sidebar/community-drawer-content.react.js
Show All 40 Lines | function CommunityDrawerContent(): React.Node { | ||||
}, []); | }, []); | ||||
const communitiesComponents = drawerItemsData.map(item => ( | const communitiesComponents = drawerItemsData.map(item => ( | ||||
<CommunityDrawerItemCommunity | <CommunityDrawerItemCommunity | ||||
itemData={item} | itemData={item} | ||||
key={item.threadInfo.id} | key={item.threadInfo.id} | ||||
toggleExpanded={setOpenCommunityOrClose} | toggleExpanded={setOpenCommunityOrClose} | ||||
expanded={item.threadInfo.id === openCommunity} | expanded={item.threadInfo.id === openCommunity} | ||||
paddingLeft={10} | |||||
/> | /> | ||||
)); | )); | ||||
return <div className={css.container}>{communitiesComponents}</div>; | return <div className={css.container}>{communitiesComponents}</div>; | ||||
} | } | ||||
export default CommunityDrawerContent; | export default CommunityDrawerContent; |