From 45373f655f68fdd0b320cde175b6108454ad4731 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 17 Jul 2021 20:32:22 +0530 Subject: Removed Franz paid plans features: - serviceLimit - planSelection - trialStatusBar and other Franz features that were for different tiers of subscription. --- src/containers/settings/AccountScreen.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'src/containers/settings/AccountScreen.js') diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index db3b2a4a7..4ee932895 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js @@ -2,7 +2,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; -import PaymentStore from '../../stores/PaymentStore'; import UserStore from '../../stores/UserStore'; import AppStore from '../../stores/AppStore'; import FeaturesStore from '../../stores/FeaturesStore'; @@ -24,10 +23,9 @@ class AccountScreen extends Component { } reloadData() { - const { user, payment } = this.props.stores; + const { user } = this.props.stores; user.getUserInfoRequest.reload(); - payment.plansRequest.reload(); } handleWebsiteLink(route) { @@ -50,26 +48,18 @@ class AccountScreen extends Component { render() { const { user, - payment, - features, settings, } = this.props.stores; - const { user: userActions, payment: paymentActions } = this.props.actions; + const { user: userActions } = this.props.actions; const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; - const isLoadingPlans = payment.plansRequest.isExecuting; - - const { upgradeAccount } = paymentActions; return ( this.handleWebsiteLink('/user/profile')} - upgradeToPro={() => upgradeAccount({ - planId: features.features.pricingConfig.plans.pro.yearly.id, - })} - openBilling={() => this.handleWebsiteLink('/user/billing')} openInvoices={() => this.handleWebsiteLink('/user/invoices')} /> @@ -98,12 +84,10 @@ AccountScreen.wrappedComponent.propTypes = { stores: PropTypes.shape({ user: PropTypes.instanceOf(UserStore).isRequired, features: PropTypes.instanceOf(FeaturesStore).isRequired, - payment: PropTypes.instanceOf(PaymentStore).isRequired, settings: PropTypes.instanceOf(SettingsStore).isRequired, app: PropTypes.instanceOf(AppStore).isRequired, }).isRequired, actions: PropTypes.shape({ - payment: PropTypes.instanceOf(PaymentStore).isRequired, app: PropTypes.instanceOf(AppStore).isRequired, user: PropTypes.instanceOf(UserStore).isRequired, }).isRequired, -- cgit v1.2.3-54-g00ecf