diff options
Diffstat (limited to 'saleor/static/js/components/categoryPage/CategoryFilter.js')
-rw-r--r-- | saleor/static/js/components/categoryPage/CategoryFilter.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/saleor/static/js/components/categoryPage/CategoryFilter.js b/saleor/static/js/components/categoryPage/CategoryFilter.js deleted file mode 100644 index 825571bc..00000000 --- a/saleor/static/js/components/categoryPage/CategoryFilter.js +++ /dev/null @@ -1,36 +0,0 @@ -import React, { Component, PropTypes } from 'react'; -import InlineSVG from 'react-inlinesvg'; - -import arrowLeftIcon from '../../../images/arrow_left.svg'; - -export default class CategoryFilter extends Component { - - static propTypes = { - category: PropTypes.object.isRequired - } - - render() { - const { category } = this.props; - const parent = category.ancestors ? category.ancestors[category.ancestors.length - 1] : null; - return ( - <div className="product-filters__categories"> - <h2><strong>{category.name}</strong></h2> - {parent && ( - <div className="product-filters__categories__parents"> - <InlineSVG src={arrowLeftIcon} /> - <a href={parent.url}>{`${pgettext('Category page filters', 'See all')} ${parent.name}`}</a> - </div> - )} - <ul className={category.parent ? ('product-filters__categories__childs') : ('product-filters__categories__childs no-parent')}> - {category.children && (category.children.map((child) => { - return ( - <li key={child.pk} className="item"> - <a href={child.url}>{child.name}</a> - </li> - ); - }))} - </ul> - </div> - ); - } -} |