Skip to content

Commit

Permalink
refactor. remove unused codes and files (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
skqksh authored Jan 28, 2024
2 parents 8fdff82 + fe801fe commit de8d051
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 253 deletions.
64 changes: 0 additions & 64 deletions packages/adena-extension/src/hooks/certify/use-import-account.ts

This file was deleted.

36 changes: 0 additions & 36 deletions packages/adena-extension/src/hooks/use-import-account.tsx

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions packages/adena-extension/src/router/popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { ForgotPassword } from '@pages/popup/certify/forgot-password';
import { EnterSeedPhrase } from '@pages/popup/certify/enter-seed';
import { Settings } from '@pages/popup/certify/settings';
import { ChangePassword } from '@pages/popup/certify/change-password';
import { SeedPhrase } from '@pages/popup/certify/seed-phrase';
import { ViewSeedPhrase } from '@pages/popup/certify/view-seed-phrase';
import { ConnectedApps } from '@pages/popup/certify/connected-apps';
import AddressBook from '@pages/popup/certify/address-book';
import AddAddress from '@pages/popup/certify/add-address';
Expand Down Expand Up @@ -87,8 +85,6 @@ export const PopupRouter = (): JSX.Element => {
<Route path={RoutePath.ManageTokenAdded} element={<ManageTokenAdded />} />
<Route path={RoutePath.Setting} element={<Settings />} />
<Route path={RoutePath.SettingChangePassword} element={<ChangePassword />} />
<Route path={RoutePath.SettingSeedPhrase} element={<SeedPhrase />} />
<Route path={RoutePath.ViewSeedPhrase} element={<ViewSeedPhrase />} />
<Route path={RoutePath.WalletSearch} element={<WalletSearch />} />
<Route path={RoutePath.TransferInput} element={<TransferInput />} />
<Route path={RoutePath.TransferSummary} element={<TransferSummary />} />
Expand Down
8 changes: 0 additions & 8 deletions packages/adena-extension/src/types/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export enum RoutePath {
ApproveEstablish = '/approve/wallet/establish',
ApproveChangingNetwork = '/approve/wallet/network/change',
ApproveAddingNetwork = '/approve/wallet/network/add',
ImportAccount = '/wallet/import-account',
AccountDetails = '/wallet/accounts/:accountId',
ManageToken = '/wallet/manage-token',
ManageTokenAdded = '/wallet/manage-token/added',
Expand All @@ -48,9 +47,6 @@ export enum RoutePath {
// settings
Setting = '/settings',
SettingChangePassword = '/settings/change-password',
SettingSeedPhrase = '/settings/seed-phrase',
ViewPrivateKey = '/settings/view-private-key',
ViewSeedPhrase = '/settings/view-seed-phrase',
ConnectedApps = '/settings/connected-apps',
ChangeNetwork = '/settings/change-network',
AddCustomNetwork = '/settings/change-network/add',
Expand Down Expand Up @@ -129,7 +125,6 @@ export type RouteParams = {
[RoutePath.ApproveEstablish]: null;
[RoutePath.ApproveChangingNetwork]: null;
[RoutePath.ApproveAddingNetwork]: null;
[RoutePath.ImportAccount]: null;
[RoutePath.AccountDetails]: null;
[RoutePath.ManageToken]: null;
[RoutePath.ManageTokenAdded]: null;
Expand Down Expand Up @@ -158,9 +153,6 @@ export type RouteParams = {

[RoutePath.Setting]: null;
[RoutePath.SettingChangePassword]: null;
[RoutePath.SettingSeedPhrase]: null;
[RoutePath.ViewPrivateKey]: null;
[RoutePath.ViewSeedPhrase]: { mnemonic: string };
[RoutePath.ConnectedApps]: null;
[RoutePath.ChangeNetwork]: null;
[RoutePath.AddCustomNetwork]: null;
Expand Down

0 comments on commit de8d051

Please sign in to comment.