Skip to content

Commit be6dc44

Browse files
chore: remove spt routes
1 parent 19b9a02 commit be6dc44

File tree

4 files changed

+12
-325
lines changed

4 files changed

+12
-325
lines changed

source/pages/Transactions/Transaction.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ import { useTranslation } from 'react-i18next';
33
import { useSelector } from 'react-redux';
44
import { useNavigate } from 'react-router-dom';
55

6-
import { Layout } from 'components/index';
76
import { useQueryData } from 'hooks/index';
87
import { useController } from 'hooks/useController';
98
import { RootState } from 'state/store';
109
import { camelCaseToText } from 'utils/format';
1110

1211
import Fee from './Fee';
13-
import TransactionConfirmation from './TransactionConfirmation';
1412

1513
interface ITransaction {
1614
type: string;
@@ -57,17 +55,6 @@ const Transaction: React.FC<ITransaction> = ({ type }) => {
5755
}, [fee]);
5856

5957
if (!fee) return <Fee title={title} onFinish={setFee} />;
60-
61-
return (
62-
<Layout canGoBack={false} title={title}>
63-
<TransactionConfirmation
64-
host={host}
65-
title={title}
66-
type={type}
67-
transaction={{ ...transaction, fee }}
68-
/>
69-
</Layout>
70-
);
7158
};
7259

7360
export default Transaction;

source/pages/Transactions/TransactionConfirmation.tsx

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

source/pages/Transactions/index.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ import EthSign_ from './SignEth';
77
import Transaction from './Transaction';
88
export const SendToken = () => <Transaction type="Send" />;
99

10-
//* Token
11-
export const CreateToken = () => <Transaction type="CreateToken" />;
12-
export const MintToken = () => <Transaction type="MintToken" />;
13-
export const TransferToken = () => <Transaction type="TransferToken" />;
14-
export const UpdateToken = () => <Transaction type="UpdateToken" />;
15-
16-
//* NFT
17-
export const CreateNFT = () => <Transaction type="CreateNft" />;
18-
export const MintNFT = () => <Transaction type="MintNft" />;
19-
2010
//* Sign
2111
export const Sign = () => <Sign_ send />;
2212
export const EthSign = () => <EthSign_ />;

source/routers/ExternalRoute.tsx

Lines changed: 12 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
11
import React, { Suspense, useEffect, useState } from 'react';
2-
import { Routes, Route, Navigate } from 'react-router-dom';
2+
import { Navigate, Route, Routes } from 'react-router-dom';
33

44
import {
5+
ApproveTransactionComponent,
56
ChangeAccount,
7+
ChangeConnectedAccount,
68
ConnectWallet,
7-
CreateToken,
8-
CreateNFT,
99
CreatePass,
10-
EthSign,
10+
CreatePasswordImport,
11+
CustomRPCExternal,
12+
Decrypt,
1113
EncryptPubKey,
14+
EthSign,
15+
ExternalWatchAsset,
1216
Import,
13-
MintNFT,
14-
MintToken,
15-
SendToken,
17+
SeedConfirm,
1618
SendConfirm,
19+
SendNTokenTransaction,
20+
SendToken,
1721
SendTransaction,
18-
SignAndSend,
1922
Sign,
23+
SignAndSend,
2024
Start,
21-
TransferToken,
22-
UpdateToken,
23-
SeedConfirm,
24-
ApproveTransactionComponent,
25-
Decrypt,
26-
CustomRPCExternal,
2725
SwitchChain,
2826
SwitchNeworkUtxoEvm,
29-
ChangeConnectedAccount,
30-
SendNTokenTransaction,
31-
CreatePasswordImport,
32-
ExternalWatchAsset,
3327
} from '../pages';
3428
import { Loading } from 'components/Loading';
3529
import { useQuery, useUtils } from 'hooks/index';
@@ -192,38 +186,6 @@ export const ExternalRoute = () => {
192186
path="sign-psbt"
193187
element={<ProtectedRoute element={<Sign />} />}
194188
/>
195-
196-
{/* /tx/asset */}
197-
<Route path="asset">
198-
<Route
199-
path="create"
200-
element={<ProtectedRoute element={<CreateToken />} />}
201-
/>
202-
<Route
203-
path="mint"
204-
element={<ProtectedRoute element={<MintToken />} />}
205-
/>
206-
<Route
207-
path="transfer"
208-
element={<ProtectedRoute element={<TransferToken />} />}
209-
/>
210-
<Route
211-
path="update"
212-
element={<ProtectedRoute element={<UpdateToken />} />}
213-
/>
214-
215-
{/* /tx/asset/nft */}
216-
<Route path="nft">
217-
<Route
218-
path="create"
219-
element={<ProtectedRoute element={<CreateNFT />} />}
220-
/>
221-
<Route
222-
path="mint"
223-
element={<ProtectedRoute element={<MintNFT />} />}
224-
/>
225-
</Route>
226-
</Route>
227189
</Route>
228190
</Route>
229191

0 commit comments

Comments
 (0)