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

Commit 198cdb8

Browse files
committed
fix: added redirect to deriv
1 parent 1770a68 commit 198cdb8

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/indexPage/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export const setTimeOutBanner = route => {
7272
(route === 'views' && checkifBotRunning() === true)
7373
) {
7474
remove('setDueDateForBanner');
75-
setStorage('setDueDateForBanner', expirationDate());
7675
return false;
7776
}
7877
}, calcSetTimeoutValueBanner);
@@ -83,7 +82,7 @@ export const renderBanner = () => {
8382
getComponent();
8483
render(Component, document.getElementById(dynamicRoutePathanme));
8584
if (dynamicRoutePathanme === 'bot-landing') {
86-
setStorage('setDueDateForBanner', expirationDate());
85+
// setStorage('setDueDateForBanner', expirationDate());
8786
}
8887
elements.map(elem => document.querySelector(elem).classList.add('hidden'));
8988
document.getElementById(dynamicRoutePathanme).classList.remove('hidden');

src/indexPage/react-components/bot-landing/Hero.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ const Hero = () => (
1515
<a href="https://bot.deriv.com">
1616
<button className="l-btn primary">{translate('Take me to Binary Bot on Deriv')}</button>
1717
</a>
18-
<a href={generateURL(window.location.href)}>
19-
<button className="l-btn">{translate('Maybe later')}</button>
20-
</a>
18+
2119
</div>
2220
</div>
2321
<div className="hero-inner__placeholder">

src/indexPage/react-components/bot-landing/SwitchSection.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ const SwitchSection = () => (
1919
<a href={getOAuthURLDeriv()}>
2020
<button className="l-btn danger">{translate('Try it now')}</button>
2121
</a>
22-
<a href={generateURL(window.location.href)}>
23-
<button className="l-btn transparent">{translate('Maybe later')}</button>
24-
</a>
22+
2523
</div>
2624
</div>
2725
</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