Skip to content

Commit

Permalink
Merge pull request RedHatInsights#228 from lgalis/fix_portfolio_param…
Browse files Browse the repository at this point in the history
…_for_add_products

Fixed the portfolio parameter for AddProductsToPortfolio render
  • Loading branch information
Hyperkid123 authored Jul 15, 2019
2 parents 1feed04 + a472fe2 commit dab0271
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/smart-components/portfolio/portfolio-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import OrderModal from '../common/order-modal';
import PortfolioEmptyState from './portfolio-empty-state';
import ContentGallery from '../content-gallery/content-gallery';

const PortolioItems = ({
const PortfolioItems = ({
title,
filteredItems,
addProductsRoute,
Expand Down Expand Up @@ -59,7 +59,7 @@ const PortolioItems = ({
</Fragment>
);

PortolioItems.propTypes = {
PortfolioItems.propTypes = {
title: PropTypes.string.isRequired,
filteredItems: PropTypes.shape({ items: PropTypes.arrayOf(PropTypes.node), isLoading: PropTypes.bool }),
portfolioRoute: PropTypes.string.isRequired,
Expand All @@ -79,8 +79,8 @@ PortolioItems.propTypes = {
portfolio: PropTypes.shape({ id: PropTypes.string })
};

PortolioItems.defaultProps = {
PortfolioItems.defaultProps = {
portfolio: {}
};

export default PortolioItems;
export default PortfolioItems;
6 changes: 3 additions & 3 deletions src/smart-components/portfolio/portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { bindActionCreators } from 'redux';
import { withRouter, Route, Switch } from 'react-router-dom';

import PortfolioItem from './portfolio-item';
import PortolioItems from './portfolio-items';
import PortfolioItems from './portfolio-items';
import { scrollToTop } from '../../helpers/shared/helpers';
import AddProductsToPortfolio from './add-products-to-portfolio';
import { defaultSettings } from '../../helpers/shared/pagination';
Expand Down Expand Up @@ -106,13 +106,13 @@ const Portfolio = props => {
<Switch>
<Route
path={ routes.addProductsRoute }
render={ props => (<AddProductsToPortfolio portfolio={ props.portfolio } portfolioRoute={ routes.portfolioRoute }/>) }
render={ () => (<AddProductsToPortfolio portfolio={ props.portfolio } portfolioRoute={ routes.portfolioRoute }/>) }
/>
<Route path={ `${routes.orderUrl}/:portfolioItemId` } component={ PortfolioItemDetail }/>
<Route
path={ routes.portfolioRoute }
render={ args => (
<PortolioItems
<PortfolioItems
{ ...routes }
{ ...args }
selectedItems={ selectedItems }
Expand Down

0 comments on commit dab0271

Please sign in to comment.