diff --git a/CHANGELOG.md b/CHANGELOG.md index 2337407..f6da570 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### +- Use lowercase in assets references in legacy component. ## [2.11.3] - 2019-05-08 +- Use lowercase in assets references. ## [2.11.2] - 2019-05-07 ### Added diff --git a/react/legacy/FooterPaymentFormList.js b/react/legacy/FooterPaymentFormList.js index 48a0c8a..ab6a81d 100644 --- a/react/legacy/FooterPaymentFormList.js +++ b/react/legacy/FooterPaymentFormList.js @@ -28,7 +28,7 @@ FooterPaymentFormItem.propTypes = { } const getImagePathFromProps = ({ paymentType, showInColor }) => - `${paymentType}${showInColor ? '' : '-BW'}.svg` + `${paymentType.toLowerCase()}${showInColor ? '' : '-bw'}.svg` export default footerList( withImage(getImagePathFromProps)(FooterPaymentFormItem) diff --git a/react/legacy/FooterSocialNetworkList.js b/react/legacy/FooterSocialNetworkList.js index 1051eb1..8740003 100644 --- a/react/legacy/FooterSocialNetworkList.js +++ b/react/legacy/FooterSocialNetworkList.js @@ -42,7 +42,7 @@ FooterSocialNetworkItem.propTypes = { ]), } const getImagePathFromProps = ({ socialNetwork, showInColor }) => - `${socialNetwork}${showInColor ? '' : '-BW'}.svg` + `${socialNetwork.toLowerCase()}${showInColor ? '' : '-bw'}.svg` export default footerList( withImage(getImagePathFromProps)(FooterSocialNetworkItem)