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 4ada3fb

Browse files
authored
Kevin/fix hotfixes (#2681)
* fix hotfixes * fix ocmments
1 parent a8a7033 commit 4ada3fb

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

src/components/custom/other-platforms.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ NavPlatform.propTypes = {
415415
}
416416

417417
export const NavMarket = ({ onClick, is_ppc }) => {
418-
const { is_not_uk } = getCountryRule()
418+
const { is_non_uk } = getCountryRule()
419419

420420
return (
421421
<Flex direction="column" wrap="wrap" jc="flex-start">
@@ -429,7 +429,7 @@ export const NavMarket = ({ onClick, is_ppc }) => {
429429
onClick={onClick}
430430
to="/markets/forex/"
431431
/>
432-
{!is_ppc && is_not_uk && (
432+
{!is_ppc && is_non_uk && (
433433
<NavCard
434434
aria_label="Synthetic indices"
435435
icon={() => <img src={SyntheticIndices} alt="" width="32" height="32" />}
@@ -451,7 +451,7 @@ export const NavMarket = ({ onClick, is_ppc }) => {
451451
onClick={onClick}
452452
to="/markets/stock/"
453453
/>
454-
{is_not_uk && (
454+
{is_non_uk && (
455455
<NavCard
456456
aria_label="Cryptocurrencies"
457457
icon={() => <img src={Cryptocurrencies} alt="" width="32" height="32" />}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect } from 'react'
22
import styled from 'styled-components'
33
import PropTypes from 'prop-types'
44
import { useOutsideClick } from 'components/hooks/use-outside-click'
5-
import { Flex, NonEU } from 'components/containers'
5+
import { Flex, ROW } from 'components/containers'
66
import { DerivStore } from 'store'
77
import { LocalizedLink, localize, Localize } from 'components/localization'
88
import { Accordion, AccordionItem, NavCard, Text, Divider } from 'components/elements'
@@ -159,7 +159,7 @@ export const OffCanvasMenuWrapper = (props) => {
159159
to="/trade-types/cfds/"
160160
/>
161161
</Flex>
162-
<NonEU>
162+
<ROW>
163163
<Flex mb="2rem">
164164
<NavCard
165165
aria_label="Options"
@@ -174,7 +174,7 @@ export const OffCanvasMenuWrapper = (props) => {
174174
to="/trade-types/options/"
175175
/>
176176
</Flex>
177-
</NonEU>
177+
</ROW>
178178
<Flex mb="2rem">
179179
<NavCard
180180
aria_label="Multipliers"
@@ -209,7 +209,7 @@ export const OffCanvasMenuWrapper = (props) => {
209209
to={props.is_ppc_redirect ? '/landing/dmt5/' : '/dmt5/'}
210210
/>
211211
</Flex>
212-
<NonEU>
212+
<ROW>
213213
<Flex mb="2rem">
214214
<NavCard
215215
aria_label="Derivx"
@@ -222,7 +222,7 @@ export const OffCanvasMenuWrapper = (props) => {
222222
to="/derivx/"
223223
/>
224224
</Flex>
225-
</NonEU>
225+
</ROW>
226226

227227
<Flex mb="2rem">
228228
<NavCard
@@ -236,7 +236,7 @@ export const OffCanvasMenuWrapper = (props) => {
236236
to="/dtrader/"
237237
/>
238238
</Flex>
239-
<NonEU>
239+
<ROW>
240240
<>
241241
<Flex mb="2rem">
242242
<NavCard
@@ -302,7 +302,7 @@ export const OffCanvasMenuWrapper = (props) => {
302302
/>
303303
</Flex>
304304
</>
305-
</NonEU>
305+
</ROW>
306306
</AccordionItem>
307307
<AccordionItem
308308
header="Markets"

src/pages/markets/components/markets/_forex.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const SimpleSteps = Loadable(() => import('components/custom/_simple-steps'))
1919
const OtherMarkets = Loadable(() => import('../sections/_other-markets.js'))
2020

2121
const Forex = ({ simple_step_content }) => {
22-
const { is_row, is_eu } = getCountryRule()
22+
const { is_row, is_eu_uk } = getCountryRule()
2323
return (
2424
<>
2525
<WhyTrade
@@ -28,7 +28,7 @@ const Forex = ({ simple_step_content }) => {
2828
<Localize translate_text="Benefit from round-the-clock trading hours (Monday to Friday), high liquidity, low barriers to entry, a wide range of offerings, and opportunities to trade on world events." />
2929
}
3030
>
31-
{(is_eu ? forex_content_eu : forex_content).map((content, index) => (
31+
{(is_eu_uk ? forex_content_eu : forex_content).map((content, index) => (
3232
<div key={index} text={content.text} icon={<img src={content.src} alt="" />} />
3333
))}
3434
</WhyTrade>
@@ -52,7 +52,9 @@ const Forex = ({ simple_step_content }) => {
5252
)
5353
}
5454
Multipliers={
55-
<Multipliers market_content={is_eu ? forex_multiplier_eu : forex_multiplier} />
55+
<Multipliers
56+
market_content={is_eu_uk ? forex_multiplier_eu : forex_multiplier}
57+
/>
5658
}
5759
name="Forex"
5860
display_title={<Localize translate_text="Forex trades available on Deriv" />}

0 commit comments

Comments
 (0)