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 c1788e0

Browse files
suthesankSuthesan
andauthored
Suthesh/academy-footer (#2081)
* added links for academy footer disclaimer * open links on new tab Co-authored-by: Suthesan <[email protected]>
1 parent d6b5255 commit c1788e0

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/components/layout/footer/disclaimer-academy.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
DisclaimerParagraph,
55
RiskWarning,
66
StaticAsset,
7-
// BoldLink,
7+
BoldLink,
88
} from './common/style.js'
99
import { Localize, localize } from 'components/localization'
1010

@@ -84,7 +84,18 @@ const DisclaimerSectionAcademy = () => {
8484
<Localize translate_text="The products mentioned here may be affected by changes in currency exchange rates. If you invest in these products, you may lose some or all of your investment, and the value of your investment may fluctuate. You should never invest money that you cannot afford to lose and never trade with borrowed money." />
8585
</DisclaimerParagraph>
8686
<DisclaimerParagraph>
87-
<Localize translate_text="Gambling can be addictive, so please play responsibly. Visit Secure and responsible trading and begambleaware.org for more information." />
87+
<Localize
88+
translate_text="Gambling can be addictive, so please play responsibly. Visit <0>Secure and responsible trading</0> and <1>begambleaware.org</1> for more information."
89+
components={[
90+
<BoldLink key={0} target="_blank" to="/responsible/" />,
91+
<BoldLink
92+
external="true"
93+
key={1}
94+
target="_blank"
95+
to="https://www.begambleaware.org/"
96+
/>,
97+
]}
98+
/>
8899
</DisclaimerParagraph>
89100
</RiskWarning>
90101
</DisclaimerWrapper>

src/pages/academy/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ const DerivBlog = ({ data }) => {
356356
key={page_data.id}
357357
to={page_data.link}
358358
style={{ textDecoration: 'none' }}
359+
rel="noopener noreferrer"
360+
target="_blank"
359361
>
360362
<Hero
361363
heroImage={

0 commit comments

Comments
 (0)