Skip to content

Commit

Permalink
Merge pull request #5 from niloo-fs/cellxpert
Browse files Browse the repository at this point in the history
Niloofar / some more features
  • Loading branch information
akmal-deriv committed Aug 3, 2022
2 parents 82f1905 + 6464644 commit e1994c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/cashier/src/stores/general-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class GeneralStore extends BaseStore {
@action.bound
replaceCashierMenuOnclick() {
const { menu, ui } = this.root_store;
const { menu, ui, client } = this.root_store;
this.setHasSetCurrency();
Expand All @@ -117,7 +117,7 @@ export default class GeneralStore extends BaseStore {
id: 'dt_cashier_tab',
icon: <CashierNotifications p2p_notification_count={this.p2p_notification_count} />,
text: () => localize('Cashier'),
link_to: this.has_set_currency && routes.cashier,
link_to: client.is_cra ? routes.cashier_withdrawal : this.has_set_currency && routes.cashier,
onClick: !this.has_set_currency ? ui.toggleSetCurrencyModal : false,
login_only: true,
},
Expand Down
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 e1994c5

Please sign in to comment.