Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. {
  2. filteredArray.map(link => {
  3. return (
  4. <div
  5. key={link.id}
  6. role="button"
  7. style={{paddingBottom: 20}}
  8. onClick={this.changeView(link.id)}
  9. onKeyPress={() => {}}
  10. tabIndex={0}
  11. >
  12. <Paragraph size="large">
  13. <a className='heading__dropdown__link'>
  14. {link.label}
  15. </a>
  16. </Paragraph>
  17. </div>
  18. )
  19. })
  20. }
  21.  
  22. changeView(id) {
  23. return (
  24. () => this.setState({clicked: id})
  25. )
  26. }
  27.  
  28. <HeadingDropdown
  29. expandedTitle="Change view"
  30. links={links}
  31. heading={currentLocation}
  32. />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement