Skip to content

Commit c007402

Browse files
Some updates (#313)
1 parent b07f1a6 commit c007402

File tree

8 files changed

+24
-21
lines changed

8 files changed

+24
-21
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Route, BrowserRouter as Router, Routes } from 'react-router-dom';
2-
import { PageNotFound } from 'pages';
2+
import { PageNotFound } from 'pages/PageNotFound/PageNotFound';
33
import { routes } from 'routes';
44
import { BatchTransactionsContextProvider } from 'wrappers';
55
import { Layout } from './components';

src/lib/sdkDapp/components/ExplorerLink/ExplorerLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PropsWithChildren } from 'react';
2-
import { useGetNetworkConfig } from 'lib/sdkDapp/sdkDappCore';
2+
import { useGetNetworkConfig } from 'lib/sdkDapp/sdkDapp.hooks';
33
import { ExplorerLinkSDK } from 'lib/sdkDappCoreUI/sdkDappCoreUI.components';
44
import { ExplorerLinkSDKPropsType } from 'lib/sdkDappCoreUI/sdkDappCoreUI.types';
55
import { WithClassnameType } from 'types/componentsTypes';

src/lib/sdkDapp/components/FormatAmount/FormatAmount.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { WithClassnameType } from 'types';
22
import { FormatAmountSDK } from '../../../sdkDappCoreUI/sdkDappCoreUI.components';
33
import { FormatAmountSDKPropsType } from '../../../sdkDappCoreUI/sdkDappCoreUI.types';
44
import { DECIMALS, DIGITS } from '../../../sdkDappUtils';
5-
import { FormatAmountController, useGetNetworkConfig } from '../../sdkDappCore';
5+
import { FormatAmountController } from '../../sdkDapp.helpers';
6+
import { useGetNetworkConfig } from '../../sdkDapp.hooks';
67

78
interface FormatAmountPropsType
89
extends Partial<FormatAmountSDKPropsType>,

src/lib/sdkDapp/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export * from './components';
2-
export * from './sdkDappCore';
3-
export * from './sdkDappCore.types';
2+
export * from './sdkDapp.constants';
3+
export * from './sdkDapp.helpers';
4+
export * from './sdkDapp.hooks';
5+
export * from './sdkDapp.types';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export {
2+
ACCOUNTS_ENDPOINT,
3+
TRANSACTIONS_ENDPOINT
4+
} from '@multiversx/sdk-dapp-core/out/apiCalls/endpoints';
5+
export {
6+
EXTRA_GAS_LIMIT_GUARDED_TX,
7+
GAS_LIMIT,
8+
GAS_PRICE,
9+
VERSION
10+
} from '@multiversx/sdk-dapp-core/out/constants/mvx.constants';
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
export {
2-
ACCOUNTS_ENDPOINT,
3-
TRANSACTIONS_ENDPOINT
4-
} from '@multiversx/sdk-dapp-core/out/apiCalls/endpoints';
5-
export {
6-
EXTRA_GAS_LIMIT_GUARDED_TX,
7-
GAS_LIMIT,
8-
GAS_PRICE,
9-
VERSION
10-
} from '@multiversx/sdk-dapp-core/out/constants/mvx.constants';
111
export { FormatAmountController } from '@multiversx/sdk-dapp-core/out/controllers/FormatAmountController';
122
export { ProviderFactory } from '@multiversx/sdk-dapp-core/out/core/providers/ProviderFactory';
133
export { TransactionManager } from '@multiversx/sdk-dapp-core/out/core/managers/TransactionManager';
@@ -20,9 +10,3 @@ export { getTransactions } from '@multiversx/sdk-dapp-core/out/apiCalls/transact
2010
export { initApp } from '@multiversx/sdk-dapp-core/out/core/methods/initApp/initApp';
2111
export { signTransactions } from '@multiversx/sdk-dapp-core/out/core/providers/strategies/helpers/signTransactions/signTransactions';
2212
export { trimUsernameDomain } from '@multiversx/sdk-dapp-core/out/utils/account/trimUsernameDomain';
23-
export { useGetAccount } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccount';
24-
export { useGetAccountInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccountInfo';
25-
export { useGetIsLoggedIn } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetIsLoggedIn';
26-
export { useGetLoginInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/loginInfo/useGetLoginInfo';
27-
export { useGetNetworkConfig } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/network/useGetNetworkConfig';
28-
export { useGetPendingTransactions } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/transactions/useGetPendingTransactions';

src/lib/sdkDapp/sdkDapp.hooks.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export { useGetAccount } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccount';
2+
export { useGetAccountInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetAccountInfo';
3+
export { useGetIsLoggedIn } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/account/useGetIsLoggedIn';
4+
export { useGetLoginInfo } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/loginInfo/useGetLoginInfo';
5+
export { useGetNetworkConfig } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/network/useGetNetworkConfig';
6+
export { useGetPendingTransactions } from '@multiversx/sdk-dapp-core/out/store/selectors/hooks/transactions/useGetPendingTransactions';

0 commit comments

Comments
 (0)