Skip to content

Commit c94f175

Browse files
committed
chore: remove PrivateKeyAccountDetails
1 parent 484fbb0 commit c94f175

File tree

8 files changed

+0
-201
lines changed

8 files changed

+0
-201
lines changed

app/components/Views/MultichainAccounts/AccountDetails/AccountDetails.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { useSelector } from 'react-redux';
88
import { RootState } from '../../../../reducers';
99
import Routes from '../../../../constants/navigation/Routes';
1010
import { useNavigation } from '@react-navigation/native';
11-
import PrivateKeyAccountDetails from './AccountTypes/PrivateKeyAccountDetails';
1211
import HardwareAccountDetails from './AccountTypes/HardwareAccountDetails';
1312
import { isHardwareAccount } from '../../../../util/address';
1413
import SnapAccountDetails from './AccountTypes/SnapAccountDetails';
@@ -39,9 +38,6 @@ export const AccountDetails = (props: AccountDetailsProps) => {
3938
if (account.metadata.keyring.type === KeyringTypes.hd) {
4039
return <HDAccountDetails account={account} />;
4140
}
42-
if (account.metadata.keyring.type === KeyringTypes.simple) {
43-
return <PrivateKeyAccountDetails account={account} />;
44-
}
4541
if (isHardwareAccount(account.address)) {
4642
return <HardwareAccountDetails account={account} />;
4743
}

app/components/Views/MultichainAccounts/AccountDetails/AccountTypes/HdAccountDetails/HdAccountDetails.test.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,5 @@ describe('HdAccountDetails', () => {
9696
);
9797

9898
expect(getByTestId(ExportCredentialsIds.EXPORT_SRP_BUTTON)).toBeTruthy();
99-
expect(
100-
getByTestId(ExportCredentialsIds.EXPORT_PRIVATE_KEY_BUTTON),
101-
).toBeTruthy();
10299
});
103100
});

app/components/Views/MultichainAccounts/AccountDetails/AccountTypes/PrivateKeyAccountDetails/PrivateKeyAccountDetails.test.tsx

Lines changed: 0 additions & 126 deletions
This file was deleted.

app/components/Views/MultichainAccounts/AccountDetails/AccountTypes/PrivateKeyAccountDetails/PrivateKeyAccountDetails.tsx

Lines changed: 0 additions & 31 deletions
This file was deleted.

app/components/Views/MultichainAccounts/AccountDetails/AccountTypes/PrivateKeyAccountDetails/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

e2e/pages/MultichainAccounts/AccountDetails.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ class AccountDetails {
3838
);
3939
}
4040

41-
get exportPrivateKeyButton(): DetoxElement {
42-
return Matchers.getElementByID(
43-
ExportCredentialsIds.EXPORT_PRIVATE_KEY_BUTTON,
44-
);
45-
}
46-
47-
get privateKeysLink(): DetoxElement {
48-
return Matchers.getElementByID(AccountDetailsIds.PRIVATE_KEYS_LINK);
49-
}
50-
5141
get exportSrpButton(): DetoxElement {
5242
return Matchers.getElementByID(ExportCredentialsIds.EXPORT_SRP_BUTTON);
5343
}
@@ -88,18 +78,6 @@ class AccountDetails {
8878
});
8979
}
9080

91-
async tapPrivateKeyLink(): Promise<void> {
92-
await Gestures.waitAndTap(this.privateKeysLink, {
93-
elemDescription: 'Unlock to reveal Private Keys in Account Details',
94-
});
95-
}
96-
97-
async tapExportPrivateKeyButton(): Promise<void> {
98-
await Gestures.waitAndTap(this.exportPrivateKeyButton, {
99-
elemDescription: 'Export Private Key Button in Account Details',
100-
});
101-
}
102-
10381
async tapExportSrpButton(): Promise<void> {
10482
await Gestures.waitAndTap(this.exportSrpButton, {
10583
elemDescription: 'Export SRP Button in Account Details',

e2e/pages/MultichainAccounts/ExportCredentials.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ class ExportCredentials {
1414
);
1515
}
1616

17-
get exportPrivateKeyButton(): DetoxElement {
18-
return Matchers.getElementByID(
19-
ExportCredentialsIds.EXPORT_PRIVATE_KEY_BUTTON,
20-
);
21-
}
22-
2317
get exportSrpButton(): DetoxElement {
2418
return Matchers.getElementByID(ExportCredentialsIds.EXPORT_SRP_BUTTON);
2519
}
@@ -38,12 +32,6 @@ class ExportCredentials {
3832
return Matchers.getElementByID(ExportCredentialsIds.LEARN_MORE_BUTTON);
3933
}
4034

41-
async tapExportPrivateKeyButton(): Promise<void> {
42-
await Gestures.waitAndTap(this.exportPrivateKeyButton, {
43-
elemDescription: 'Export Private Key Button in Export Credentials',
44-
});
45-
}
46-
4735
async tapExportSrpButton(): Promise<void> {
4836
await Gestures.waitAndTap(this.exportSrpButton, {
4937
elemDescription: 'Export SRP Button in Export Credentials',

e2e/selectors/MultichainAccounts/ExportCredentials.selectors.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
export const ExportCredentialsIds = {
22
CONTAINER: 'export-credentials-container',
33
SRP_NAME: 'export-credentials-srp-name',
4-
PRIVATE_KEY_LINK: 'export-credentials-private-key-link',
5-
EXPORT_PRIVATE_KEY_BUTTON: 'export-credentials-export-private-key-button',
64
EXPORT_SRP_BUTTON: 'export-credentials-export-srp-button',
75
NEXT_BUTTON: 'export-credentials-next-button',
86
LEARN_MORE_BUTTON: 'export-credentials-learn-more-button',

0 commit comments

Comments
 (0)