Skip to content

Commit

Permalink
feat: disable extra buttons in the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Niloofar Sadeghi committed Aug 1, 2022
1 parent de1a697 commit 6464644
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/App/Containers/Layout/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const Footer = ({
toggleSettingsModal,
settings_extension,
landing_company_shortcode,
is_cra,
}) => {
let footer_extensions_left = [];
let footer_extensions_right = [];
Expand Down Expand Up @@ -70,8 +71,8 @@ const Footer = ({
<LiveChat />
<FooterIconSeparator />
<GoToDeriv />
<ResponsibleTrading />
{is_logged_in && <AccountLimitsFooter />}
{!is_cra && <ResponsibleTrading />}
{is_logged_in && !is_cra && <AccountLimitsFooter />}
{is_logged_in && !is_virtual && (
<RegulatoryInformation landing_company={landing_company_shortcode} is_eu={is_eu} />
)}
Expand All @@ -92,6 +93,7 @@ const Footer = ({

Footer.propTypes = {
is_app_disabled: PropTypes.bool,
is_cra: PropTypes.bool,
is_logged_in: PropTypes.bool,
is_route_modal_on: PropTypes.bool,
is_settings_modal_on: PropTypes.bool,
Expand All @@ -109,6 +111,7 @@ export default withRouter(
is_route_modal_on: ui.is_route_modal_on,
is_logged_in: client.is_logged_in,
is_eu: client.is_eu,
is_cra: client.is_cra,
is_loading: ui.is_loading,
is_settings_modal_on: ui.is_settings_modal_on,
is_virtual: client.is_virtual,
Expand Down

0 comments on commit 6464644

Please sign in to comment.