Skip to content

Commit

Permalink
Update app
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNikita committed Dec 3, 2024
1 parent dc7c8bf commit f46fa46
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions apps/tablet/src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { Account } from '@tonkeeper/core/dist/entries/account';
import { localizationText } from '@tonkeeper/core/dist/entries/language';
import { getApiConfig } from '@tonkeeper/core/dist/entries/network';
import { getApiConfig, Network } from '@tonkeeper/core/dist/entries/network';
import { WalletVersion } from '@tonkeeper/core/dist/entries/wallet';
import { useWindowsScroll } from '@tonkeeper/uikit/dist/components/Body';
import ConnectLedgerNotification from '@tonkeeper/uikit/dist/components/ConnectLedgerNotification';
Expand Down Expand Up @@ -298,7 +298,7 @@ export const Loader: FC = () => {
}, [lang, i18n]);

useEffect(() => {
// window.backgroundApi.onRefresh(() => queryClient.invalidateQueries()); TODO
// window.backgroundApi.onRefresh(() => queryClient.invalidateQueries()); TODO
}, []);

if (
Expand All @@ -316,9 +316,15 @@ export const Loader: FC = () => {
}

const context: IAppContext = {
api: getApiConfig(config, network, import.meta.env.VITE_APP_TONCONSOLE_HOST),
mainnetApi: getApiConfig(
config.mainnetConfig,
Network.MAINNET,
import.meta.env.VITE_APP_TONCONSOLE_HOST
),
testnetApi: getApiConfig(config.mainnetConfig, Network.TESTNET),
fiat,
config,
mainnetConfig: config.mainnetConfig,
testnetConfig: config.testnetConfig,
tonendpoint,
standalone: true,
extension: false,
Expand Down

0 comments on commit f46fa46

Please sign in to comment.