Closed thebedroomprogrammer closed 7 years ago
So I have a status list of each seller that I want to map inside dropdown menu as list. Now when I map it. It does not show any data but it works when the data is static.
here is my code
` <DropdownTrigger class={'btn btn-primary'}> ACTION
</DropdownTrigger> <DropdownMenu class="dropdown-menu-right"> {this.renderDropdownAction(this.props.seller.sellerRegistrationStatusList)} </DropdownMenu> </Dropdown>`
`renderDropdownAction(sellerList) { if(sellerList){ console.log(sellerList); console.log("ssssssssssssssssssssssssss"); return sellerList.map((statusObj)=>{ return (
); }) }else{ return ( <li> <a class="menu-item" > Not working </a> </li> ); }
}`
What is DropdownMenu? Do you have a complete example of this code, including the imports?
DropdownMenu
It was my fault. Wrote some bad code. Thanks for replying.
So I have a status list of each seller that I want to map inside dropdown menu as list. Now when I map it. It does not show any data but it works when the data is static.
here is my code
`
<DropdownTrigger class={'btn btn-primary'}>
ACTION
`renderDropdownAction(sellerList) { if(sellerList){ console.log(sellerList); console.log("ssssssssssssssssssssssssss"); return sellerList.map((statusObj)=>{ return (
}`