Skip to content

Commit

Permalink
father to parent
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfidelis committed Jul 26, 2019
1 parent e287037 commit dc7b57d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const AttachmentItem = ({
const childrenAdded = (assemblyOptions && assemblyOptions.added) || []
const childrenRemoved = (assemblyOptions && assemblyOptions.removed) || []
const filteredChildrenAdded = reject(itemShouldHide, childrenAdded)
const fatherColor =
const parentColor =
filteredChildrenAdded.length > 0 || childrenRemoved.length > 0
? 'c-on-base'
: 'c-muted-2'

return (
<div className={`${styles.attachmentItemContainer} flex flex-column pv1`}>
<div className={`flex items-center justify-between`}>
<span className={`t-small ${fatherColor} tl pr3`}>{productText}</span>
<span className={`t-small ${parentColor} tl pr3`}>{productText}</span>
{price != null && showItemPrice && price > 0 && (
<ProductPrice
sellingPrice={price}
Expand Down

0 comments on commit dc7b57d

Please sign in to comment.