diff --git a/src/components/layout/footer.js b/src/components/layout/footer.js index 0e9a72f6831..29a6dfb34b3 100644 --- a/src/components/layout/footer.js +++ b/src/components/layout/footer.js @@ -6,7 +6,6 @@ import { DefaultFooter, FooterGrid } from './footer/common/style.js' import LogoSection from './footer/logo' import MainLinksSection from './footer/main-links' import DisclaimerSection from './footer/disclaimer' -import DisclaimerSectionAcademy from './footer/disclaimer-academy' import CopyrightSection from './footer/copyright' import BottomSocialSection from './footer/bottom-social-wrapper' import AdditionalEUSection from './footer/additional-eu' @@ -39,7 +38,7 @@ const Footer = ({ type, is_ppc, is_ppc_redirect, academy }) => { is_ppc_redirect={is_ppc_redirect} is_eu_country={is_eu_country} /> - {academy ? : } + diff --git a/src/components/layout/footer/disclaimer-academy.js b/src/components/layout/footer/disclaimer-academy.js deleted file mode 100644 index 06cdce19ba0..00000000000 --- a/src/components/layout/footer/disclaimer-academy.js +++ /dev/null @@ -1,181 +0,0 @@ -import React from 'react' -import { - DisclaimerWrapper, - DisclaimerParagraph, - RiskWarning, - StaticAsset, - BoldLink, -} from './common/style.js' -import { Show } from 'components/containers' -import { Localize, localize } from 'components/localization' -import { loss_percent } from 'common/constants.js' - -const DisclaimerSectionAcademy = () => { - return ( - <> - - - - , - ]} - /> - - - , - , - , - ]} - /> - - - - - , - ]} - /> - - - , - ]} - /> - - - - {localize( - 'Deriv Limited - 13 Castle Street, St. Helier, JE2 3BT, Jersey - is the holding company for the above subsidiaries.', - )} - - - {localize( - "This website's services are not available in certain countries, including the USA, Canada, and Hong Kong, or to persons below 18.", - )} - - - {localize( - 'The information contained in this academy is for educational purposes only and is not intended as financial or investment advice.', - )} - - - - - - - - - , - ]} - /> - - - - - - - - - - - - - - , - ]} - /> - - - - - - - - - - - - - - - - , - ]} - /> - - - - - - - - , - ]} - /> - - - - - - - ) -} - -export default DisclaimerSectionAcademy diff --git a/src/components/layout/footer/disclaimer.js b/src/components/layout/footer/disclaimer.js index 9b32a977b1a..297de9ab922 100644 --- a/src/components/layout/footer/disclaimer.js +++ b/src/components/layout/footer/disclaimer.js @@ -1,4 +1,5 @@ import React from 'react' +import PropTypes from 'prop-types' import { DisclaimerWrapper, DisclaimerParagraph, @@ -10,7 +11,7 @@ import { Show } from 'components/containers' import { Localize, localize } from 'components/localization' import { loss_percent } from 'common/constants.js' -const DisclaimerSection = () => { +const DisclaimerSection = ({ is_academy }) => { return ( <> @@ -70,7 +71,11 @@ const DisclaimerSection = () => { licence no. MGA/B2C/102/2000)${ + is_academy + ? ' and by the Revenue Commissioners for clients in Ireland (licence no. 1010285).' + : '.' + }`} components={[ { "This website's services are not available in certain countries, including the USA, Canada, and Hong Kong, or to persons below 18.", )} + {is_academy && ( + + {localize( + 'The information contained in this academy is for educational purposes only and is not intended as financial or investment advice.', + )} + + )} @@ -173,4 +185,8 @@ const DisclaimerSection = () => { ) } +DisclaimerSection.propTypes = { + is_academy: PropTypes.bool, +} + export default DisclaimerSection diff --git a/src/pages/dmt5/_start-trader.tsx b/src/pages/dmt5/_start-trader.tsx index 29b0ffe6842..06a07e298f1 100644 --- a/src/pages/dmt5/_start-trader.tsx +++ b/src/pages/dmt5/_start-trader.tsx @@ -113,6 +113,7 @@ const ImageWrapper = styled.div` const demoActive = css` box-shadow: 0 16px 20px 0 rgba(0, 0, 0, 0.05), 0 0 20px 0 rgba(0, 0, 0, 0.05); border: unset; + ${Text} { font-weight: bold; } @@ -120,6 +121,7 @@ const demoActive = css` const realActive = css` box-shadow: unset; + ${Text} { font-weight: unset; }