Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit dc0d906

Browse files
author
bahar
committed
replace_banners
1 parent a292f0f commit dc0d906

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

src/botPage/view/View.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
import { translate } from '../../common/i18n';
3131
import { isEuCountry, showHideEuElements, hasEuAccount } from '../../common/footer-checks';
3232
import googleDrive from '../../common/integrations/GoogleDrive';
33-
import { getLanguage, showRelatedBanner } from '../../common/lang';
33+
import { getLanguage, showdBanner } from '../../common/lang';
3434
import { observer as globalObserver } from '../../common/utils/observer';
3535
import {
3636
getTokenList,
@@ -188,7 +188,7 @@ const updateTokenList = () => {
188188

189189
// If logged out, determine EU based on IP.
190190
isEuCountry(api).then(isEu => showHideEuElements(isEu));
191-
showRelatedBanner();
191+
showdBanner();
192192

193193
$('.account-id')
194194
.removeAttr('value')
@@ -203,7 +203,7 @@ const updateTokenList = () => {
203203

204204
const activeToken = getActiveToken(tokenList, getStorage(AppConstants.STORAGE_ACTIVE_TOKEN));
205205
showHideEuElements(hasEuAccount(tokenList));
206-
showRelatedBanner();
206+
showdBanner();
207207
updateLogo(activeToken.token);
208208
addBalanceForToken(activeToken.token);
209209

src/common/lang.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const load = () => {
5151
addUiLang();
5252
};
5353

54-
export const showRelatedBanner = () => {
54+
export const showdBanner = () => {
5555
if (getLanguage() === 'pt') {
5656
document.querySelectorAll(`.${getLanguage()}-show`).forEach(el => {
5757
el.classList.remove('invisible');

src/indexPage/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ import Footer from './react-components/footer.jsx';
66
import { oauthLogin } from '../common/appId';
77
import { isEuCountry, showHideEuElements } from '../common/footer-checks';
88
import GTM from '../common/gtm';
9-
import { load as loadLang , showRelatedBanner } from '../common/lang';
9+
import { load as loadLang, showdBanner } from '../common/lang';
1010
import { getTokenList } from '../common/utils/storageManager';
1111
import { createUrl } from '../common/utils/tools';
1212
import '../common/binary-ui/dropdown';
1313

14-
1514
const renderElements = () => {
1615
ReactDOM.render(<Logo />, document.getElementById('binary-logo'));
1716
ReactDOM.render(<Footer />, document.getElementById('footer'));
1817
isEuCountry().then(isEu => showHideEuElements(isEu));
19-
showRelatedBanner();
18+
showdBanner();
2019
$('#shop-url').attr('href', createUrl({ subdomain: 'shop', path: 'collections/strategies', isNonBotPage: true }));
2120
};
2221

static/image/pt-web-banner.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/image/web-banner-english.svg

Lines changed: 1 addition & 0 deletions
Loading

static/image/web-banner-portuguese.svg

Lines changed: 1 addition & 0 deletions
Loading

static/image/web-banner.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

templates/partials/dbot-banner.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
-->
66
<div class="dbot-banner__icon any-show invisible">
77
<a href="https://deriv.com/interim/dbot/?utm_source=binary-bot&utm_medium=referral&utm_campaign=deriv-launch" target="_blank">
8-
<img src="./image/web-banner.svg">
8+
<img src="./image/web-banner-english.svg">
99
</a>
1010
</div>
1111
<div class="dbot-banner__icon pt-show invisible">
1212
<a href="https://deriv.com/pt/interim/dbot/?utm_source=binary-bot&utm_medium=referral&utm_campaign=deriv-launch" target="_blank">
13-
<img src="./image/pt-web-banner.svg">
13+
<img src="./image/web-banner-portuguese.svg">
1414
</a>
1515
</div>
1616
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy