From 8e8bada64d2f96768cb81066772e7d006ce51873 Mon Sep 17 00:00:00 2001 From: miko <34790748+keikari@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:58:51 +0200 Subject: [PATCH] Remove stripe signup options (#3188) * Disable add bank account from settings and upload form * Disable add bank account from memberships page --------- Co-authored-by: miko --- .../publish/shared/publishPrice/view.jsx | 34 ++++++------------- .../creatorArea/internal/tabWrapper/view.jsx | 5 ++- ui/page/settingsStripeAccount/view.jsx | 8 ++--- 3 files changed, 15 insertions(+), 32 deletions(-) diff --git a/ui/component/publish/shared/publishPrice/view.jsx b/ui/component/publish/shared/publishPrice/view.jsx index 415fba76e3..3970fdfb16 100644 --- a/ui/component/publish/shared/publishPrice/view.jsx +++ b/ui/component/publish/shared/publishPrice/view.jsx @@ -11,7 +11,6 @@ import I18nMessage from 'component/i18nMessage'; import { PAYWALL } from 'constants/publish'; import * as PUBLISH_TYPES from 'constants/publish_types'; import usePersistedState from 'effects/use-persisted-state'; -import ButtonStripeConnectAccount from 'component/buttonStripeConnectAccount'; import './style.lazy.scss'; const FEE = { MIN: 1, MAX: 999.99 }; @@ -103,20 +102,6 @@ function PublishPrice(props: Props) { } } - function getBankAccountDriver() { - return ( -
- , - }} - > - %click_here_to_connect_a_bank_account% to enable purchasing and renting functionality. - -
- ); - } - function getRestrictionWarningRow() { return (
@@ -145,15 +130,16 @@ function PublishPrice(props: Props) { disabled={disabled} onChange={() => updatePublishForm({ paywall: PAYWALL.FREE })} /> - updatePublishForm({ paywall: PAYWALL.FIAT })} - /> - {noBankAccount && getBankAccountDriver()} + {!noBankAccount && ( + updatePublishForm({ paywall: PAYWALL.FIAT })} + /> + )} { return ( } + subtitle={__('Adding a bank account has been disabled.')} + action={<>} /> ); } diff --git a/ui/page/settingsStripeAccount/view.jsx b/ui/page/settingsStripeAccount/view.jsx index 9a3da17cbc..105bbab0e2 100644 --- a/ui/page/settingsStripeAccount/view.jsx +++ b/ui/page/settingsStripeAccount/view.jsx @@ -5,7 +5,6 @@ import Card from 'component/common/card'; import Page from 'component/page'; import I18nMessage from 'component/i18nMessage'; import Spinner from 'component/spinner'; -import ButtonStripeConnectAccount from 'component/buttonStripeConnectAccount'; import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; @@ -112,12 +111,13 @@ const StripeAccountConnection = (props: Props) => {
) : (
-

{__('Connect your bank account to Odysee to receive donations directly from users')}

+

{__('Adding a bank account has been disabled.')}

) } actions={ - chargesEnabled && !accountRequiresVerification ? ( + chargesEnabled && + !accountRequiresVerification && ( <>