From 16208164a14fc7252cdf67ba3174839480e6bd07 Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Fri, 29 Nov 2024 18:04:34 -0300 Subject: [PATCH] fix(components/login): dropping facebook from default oauth providers --- @ecomplus/storefront-components/src/js/LoginBlock.js | 2 +- @ecomplus/storefront-components/src/js/LoginModal.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/@ecomplus/storefront-components/src/js/LoginBlock.js b/@ecomplus/storefront-components/src/js/LoginBlock.js index 6a2a1ef1a..924011395 100644 --- a/@ecomplus/storefront-components/src/js/LoginBlock.js +++ b/@ecomplus/storefront-components/src/js/LoginBlock.js @@ -167,7 +167,7 @@ export default { .then(({ host, baseUri, oauthPath, providers }) => { const oauthProviders = [] for (const provider in providers) { - if (providers[provider]) { + if (providers[provider] && provider !== 'facebook') { const { faIcon, providerName } = providers[provider] let link = host + baseUri + provider + oauthPath const referral = typeof window === 'object' && diff --git a/@ecomplus/storefront-components/src/js/LoginModal.js b/@ecomplus/storefront-components/src/js/LoginModal.js index 7affec5c5..25f037d14 100644 --- a/@ecomplus/storefront-components/src/js/LoginModal.js +++ b/@ecomplus/storefront-components/src/js/LoginModal.js @@ -125,7 +125,7 @@ export default { .then(({ host, baseUri, oauthPath, providers }) => { const oauthProviders = [] for (const provider in providers) { - if (providers[provider]) { + if (providers[provider] && provider !== 'facebook') { const { faIcon, providerName } = providers[provider] let link = host + baseUri + provider + oauthPath const referral = typeof window === 'object' && @@ -153,11 +153,6 @@ export default { presetOauthProviders () { this.oauthProviders = [ - { - faIcon: 'fa-facebook-f', - providerName: 'Facebook', - provider: 'facebook' - }, { faIcon: 'fa-google', providerName: 'Google',