Skip to content

Commit

Permalink
Revert "Integrate Account Management component into the Settings Page" (
Browse files Browse the repository at this point in the history
  • Loading branch information
mordeth authored Feb 18, 2025
1 parent b1baeb0 commit 8e8f960
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 103 deletions.
4 changes: 0 additions & 4 deletions changelog/add-9129-account-management-component

This file was deleted.

68 changes: 0 additions & 68 deletions client/settings/account-management/index.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions client/settings/account-management/style.scss

This file was deleted.

26 changes: 1 addition & 25 deletions client/settings/settings-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import SettingsLayout from '../settings-layout';
import SaveSettingsSection from '../save-settings-section';
import Transactions from '../transactions';
import Deposits from '../deposits';
import AccountManagement from '../account-management';
import LoadableSettingsSection from '../loadable-settings-section';
import PaymentMethodsSection from '../payment-methods-section';
import BuyNowPayLaterSection from '../buy-now-pay-later-section';
Expand Down Expand Up @@ -103,20 +102,6 @@ const DepositsDescription = () => {
);
};

const AccountDetailsDescription = () => {
return (
<>
<h2>{ __( 'Account details', 'woocommerce-payments' ) }</h2>
<p>
{ __(
'View and edit your WooPayments account details like personal or business information and public information.',
'woocommerce-payments'
) }
</p>
</>
);
};

const FraudProtectionDescription = () => {
return (
<>
Expand Down Expand Up @@ -158,6 +143,7 @@ const SettingsManager = () => {
const [ isTransactionInputsValid, setTransactionInputsValid ] = useState(
true
);

const { isLoading } = useSettings();

useLayoutEffect( () => {
Expand Down Expand Up @@ -225,16 +211,6 @@ const SettingsManager = () => {
</LoadableSettingsSection>
</SettingsSection>
</DuplicatedPaymentMethodsContext.Provider>
<SettingsSection
description={ AccountDetailsDescription }
id="account-details"
>
<LoadableSettingsSection numLines={ 20 }>
<ErrorBoundary>
<AccountManagement />
</ErrorBoundary>
</LoadableSettingsSection>
</SettingsSection>
<SettingsSection
description={ TransactionsDescription }
id="transactions"
Expand Down

0 comments on commit 8e8f960

Please sign in to comment.