From 0e9704f7dbebdb8558431f7a5e9b3fca2d6d2ccd Mon Sep 17 00:00:00 2001 From: Rerisson Matos Date: Wed, 8 May 2019 15:52:27 -0300 Subject: [PATCH] Use lowercase for assets in legacy footer --- CHANGELOG.md | 3 +++ react/legacy/FooterPaymentFormList.js | 2 +- react/legacy/FooterSocialNetworkList.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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)