Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit ceeb981

Browse files
authored
feat: change links from developers to api (deriv-api) (#1937)
1 parent 3a63968 commit ceeb981

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/common/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const domain_url =
1616
export const domain_full_url = `https://${domain_url}`
1717
export const deriv_app_id = domain_url === deriv_com_url ? deriv_com_app_id : deriv_me_app_id
1818
export const deriv_app_url = `https://app.${domain_url}`
19-
export const deriv_developer_url = `https://developers.${domain_url}`
19+
export const deriv_api_url = `https://api.${domain_url}`
2020
export const deriv_bot_app_url = `${deriv_app_url}/bot`
2121
export const deriv_dp2p_app_url = `${deriv_app_url}/cashier/p2p`
2222
export const deriv_mt5_app_url = `${deriv_app_url}/mt5`
@@ -70,7 +70,7 @@ export const localized_link_url = Object.freeze({
7070
blog: blog_url,
7171
community: community_url,
7272
derivx: derivx_app_url,
73-
developers: deriv_developer_url,
73+
api: deriv_api_url,
7474
dbot: deriv_bot_app_url,
7575
deriv_app: deriv_app_url,
7676
mt5: deriv_mt5_app_url,

src/components/elements/off-canvas-menu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export const OffCanvasMenuWrapper = (props) => {
518518
</StyledLink>
519519
<StyledLink
520520
to=""
521-
type="developers"
521+
type="api"
522522
target="_blank"
523523
external="true"
524524
rel="noopener noreferrer"
@@ -583,7 +583,7 @@ export const OffCanvasMenuPartner = (props) => {
583583
</StyledLink>
584584
<StyledLink
585585
to=""
586-
type="developers"
586+
type="api"
587587
target="_blank"
588588
external="true"
589589
rel="noopener noreferrer"

src/components/layout/footer/main-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect, is_eu_country }) => {
142142
<LinkWrapper>
143143
<Link
144144
to=""
145-
type="developers"
145+
type="api"
146146
target="_blank"
147147
external="true"
148148
rel="noopener noreferrer"

src/components/layout/nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,10 +955,10 @@ export const NavPartners = ({ no_login_signup }) => {
955955
</NavLink>
956956
<NavLink>
957957
<StyledLink
958-
active={current_page === 'developers'}
958+
active={current_page === 'api'}
959959
activeClassName="active"
960960
to=""
961-
type="developers"
961+
type="api"
962962
target="_blank"
963963
external="true"
964964
rel="noopener noreferrer"

src/components/localization/localized-link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ InternalLink.propTypes = {
140140
const affiliate_links = ['affiliate_sign_in', 'affiliate_sign_up']
141141
const deriv_app_links = ['dbot', 'deriv_app', 'mt5', 'derivx']
142142
const deriv_other_products = ['binary', 'smart_trader']
143-
const deriv_social_platforms = ['blog', 'community', 'developers', 'zoho']
143+
const deriv_social_platforms = ['blog', 'community', 'api', 'zoho']
144144
// add item to this array if you need to make an internal link open on a new tab without modal window
145145
const new_tab_no_modal = ['terms_and_conditions']
146146

src/pages/partners/_partnership-opportunities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const PartnershipOpportunities = () => (
104104
</ClientCard>
105105
<ClientCard
106106
to=""
107-
type="developers"
107+
type="api"
108108
target="_blank"
109109
external="true"
110110
rel="noopener noreferrer"

0 commit comments

Comments
 (0)