Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Commit

Permalink
Add click handler to Remove Products button in PortfolioActionToolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilda Stastna committed Jan 22, 2019
1 parent 0a2b993 commit c9bc9a1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/PresentationalComponents/Portfolio/PortfolioActionToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ class PortfolioActionToolbar extends Component {
<ToolbarGroup className={ 'pf-u-ml-auto-on-xl' }>
<ToolbarItem className={ css(spacingStyles.mxLg) }>
<Link to={ this.props.addProductsRoute }>
<Button variant="link" aria-label="Add Products to Portfolio">
<Button variant="link" aria-label="Add Products to Portfolio">
Add Products
</Button>
</Link>
</ToolbarItem>
<ToolbarItem className={ css(spacingStyles.mxLg) }>
<Button variant="plain" aria-label="Remove Products from Portfolio">
Remove Products
</Button>
<Link to={ this.props.removeProductsRoute }>
<Button variant="plain" aria-label="Remove Products from Portfolio">
Remove Products
</Button>
</Link>
</ToolbarItem>
<ToolbarItem>
{ this.buildPortfolioActionKebab() }
Expand All @@ -80,6 +82,7 @@ PortfolioActionToolbar.propTypes = {
title: propTypes.string,
onClickEditPortfolio: propTypes.func,
addProductsRoute: propTypes.string.isRequired,
removeProductsRoute: propTypes.string.isRequired,
editPortfolioRoute: propTypes.string.isRequired,
removePortfolioRoute: propTypes.string.isRequired
};
Expand Down

0 comments on commit c9bc9a1

Please sign in to comment.