Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- filteredArray.map(link => {
- return (
- <div
- key={link.id}
- role="button"
- style={{paddingBottom: 20}}
- onClick={this.changeView(link.id)}
- onKeyPress={() => {}}
- tabIndex={0}
- >
- <Paragraph size="large">
- <a className='heading__dropdown__link'>
- {link.label}
- </a>
- </Paragraph>
- </div>
- )
- })
- }
- changeView(id) {
- return (
- () => this.setState({clicked: id})
- )
- }
- <HeadingDropdown
- expandedTitle="Change view"
- links={links}
- heading={currentLocation}
- />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement