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

Commit da01c45

Browse files
feat: redirect to deriv help-centre by clicking on need help and contact us button (#7231)
1 parent 436dd4b commit da01c45

File tree

6 files changed

+6
-193
lines changed

6 files changed

+6
-193
lines changed

src/javascript/_common/base/elevio.js

Lines changed: 0 additions & 151 deletions
This file was deleted.

src/javascript/app/base/binary_pages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const VideoFacility = require('../pages/user/video_facility');
5656

5757
// ==================== static ====================
5858
// const Charity = require('../../static/pages/charity');
59-
const Contact = require('../../static/pages/contact');
59+
// const Contact = require('../../static/pages/contact');
6060
// const Contact2 = require('../../static/pages/contact_2');
6161
const DeactivatedAccount = require('../../static/pages/deactivated_account');
6262
const GetStarted = require('../../static/pages/get_started');
@@ -89,7 +89,7 @@ const pages_config = {
8989
// charity : { module: Charity },
9090
change_passwordws : { module: ChangePassword, is_authenticated: true },
9191
closure : { module: AccountClosure, is_authenticated: true },
92-
contact : { module: Contact },
92+
// contact : { module: Contact },
9393
cryptocurrencies : { module: GetStarted.Cryptocurrencies },
9494
cyberjaya : { module: StaticPages.Locations },
9595
detailsws : { module: PersonalDetails, is_authenticated: true, needs_currency: true },

src/javascript/app/base/page.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const Menu = require('./menu');
88
const BinarySocket = require('./socket');
99
const TrafficSource = require('../common/traffic_source');
1010
const RealityCheck = require('../pages/user/reality_check/reality_check');
11-
const Elevio = require('../../_common/base/elevio');
1211
const Login = require('../../_common/base/login');
1312
const ClientBase = require('../../_common/base/client_base');
1413
const elementInnerHtml = require('../../_common/common_functions').elementInnerHtml;
@@ -42,7 +41,6 @@ const Page = (() => {
4241
State.set('is_loaded_by_pjax', false);
4342
GTM.init();
4443
Url.init();
45-
Elevio.init();
4644
PushNotification.init();
4745
onDocumentReady();
4846
Crowdin.init();
@@ -98,10 +96,7 @@ const Page = (() => {
9896
// TODO: uncomment below to enable interview popup dialog
9997
// InterviewPopup.onLoad();
10098
}
101-
if (url_query_strings['data-elevio-article']) {
102-
Elevio.injectElevio();
103-
}
104-
99+
105100
// Handle opening livechat via URL
106101
const is_livechat_open = url_query_strings.is_livechat_open === 'true';
107102

src/javascript/static/pages/contact.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/templates/_common/_layout/footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Footer = () => (
5252
{ text: it.L('Binary.com in Numbers'), href: it.url_for('binary-in-numbers') },
5353
{ text: it.L('Careers'), href: it.deriv_career_url , target: '_blank' },
5454
{ text: it.L('Patents'), href: it.url_for('legal/us_patents') },
55-
{ text: it.L('Contact Us'), href: it.url_for('contact') },
55+
{ text: it.L('Contact Us'), href: 'https://deriv.com/help-centre' },
5656
]}
5757
/>
5858

src/templates/_common/includes/elevio.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from 'react';
33

44
const Elevio = () => (
5-
<React.Fragment>
5+
<a href="https://deriv.com/help-centre">
66
<div id='elevio-shell'>
77
<span className='text'>
88
{it.L('NEED HELP?')}
@@ -18,6 +18,6 @@ const Elevio = () => (
1818
</svg>
1919
</span>
2020
</div>
21-
</React.Fragment>
21+
</a>
2222
);
2323
export default Elevio;

0 commit comments

Comments
 (0)