diff --git a/apps/desktop/src/app/App.tsx b/apps/desktop/src/app/App.tsx
index 9cb72ae3d..ef6d7039a 100644
--- a/apps/desktop/src/app/App.tsx
+++ b/apps/desktop/src/app/App.tsx
@@ -14,6 +14,7 @@ import MemoryScroll from '@tonkeeper/uikit/dist/components/MemoryScroll';
import QrScanner from '@tonkeeper/uikit/dist/components/QrScanner';
import {
ActivitySkeletonPage,
+ BrowserSkeletonPage,
CoinSkeletonPage,
HomeSkeleton,
SettingsSkeletonPage
@@ -46,6 +47,7 @@ import { UnlockNotification } from '@tonkeeper/uikit/dist/pages/home/UnlockNotif
import ImportRouter from '@tonkeeper/uikit/dist/pages/import';
import Initialize, { InitializeContainer } from '@tonkeeper/uikit/dist/pages/import/Initialize';
import Settings from '@tonkeeper/uikit/dist/pages/settings';
+import Browser from '@tonkeeper/uikit/dist/pages/browser';
import { UserThemeProvider } from '@tonkeeper/uikit/dist/providers/UserThemeProvider';
import { useAccountState } from '@tonkeeper/uikit/dist/state/account';
import { useAuthState } from '@tonkeeper/uikit/dist/state/password';
@@ -71,6 +73,7 @@ const queryClient = new QueryClient({
});
const sdk = new DesktopAppSdk();
+const TARGET_ENV = 'desktop';
const langs = 'en,zh_CN,ru,it,tr';
const listOfAuth: AuthState['kind'][] = ['keychain'];
@@ -133,7 +136,12 @@ export const Loader: FC = () => {
const { data: account } = useAccountState();
const { data: auth } = useAuthState();
- const tonendpoint = useTonendpoint(sdk.version, activeWallet?.network, activeWallet?.lang);
+ const tonendpoint = useTonendpoint(
+ TARGET_ENV,
+ sdk.version,
+ activeWallet?.network,
+ activeWallet?.lang
+ );
const { data: config } = useTonenpointConfig(tonendpoint);
const navigate = useNavigate();
@@ -239,6 +247,14 @@ export const Content: FC<{
}
/>
+ }>
+
+
+ }
+ />
import('@tonkeeper/uikit/dist/pages/import'));
const Settings = React.lazy(() => import('@tonkeeper/uikit/dist/pages/settings'));
+const Browser = React.lazy(() => import('@tonkeeper/uikit/dist/pages/browser'));
const Activity = React.lazy(() => import('@tonkeeper/uikit/dist/pages/activity/Activity'));
const Home = React.lazy(() => import('@tonkeeper/uikit/dist/pages/home/Home'));
const Coin = React.lazy(() => import('@tonkeeper/uikit/dist/pages/coin/Coin'));
@@ -81,6 +82,7 @@ const queryClient = new QueryClient({
});
const sdk = new ExtensionAppSdk();
+const TARGET_ENV = 'extension';
connectToBackground();
export const App: FC = () => {
@@ -165,6 +167,7 @@ export const Loader: FC = React.memo(() => {
const { data: account } = useAccountState();
const { data: auth } = useAuthState();
const tonendpoint = useTonendpoint(
+ TARGET_ENV,
sdk.version,
activeWallet?.network,
localizationFrom(browser.i18n.getUILanguage())
@@ -282,6 +285,14 @@ export const Content: FC<{
}
/>
+ }>
+
+
+ }
+ />
import('@tonkeeper/uikit/dist/pages/import/Initialize'));
const ImportRouter = React.lazy(() => import('@tonkeeper/uikit/dist/pages/import'));
+const Browser = React.lazy(() => import('@tonkeeper/uikit/dist/pages/browser'));
const Settings = React.lazy(() => import('@tonkeeper/uikit/dist/pages/settings'));
const Activity = React.lazy(() => import('@tonkeeper/uikit/dist/pages/activity/Activity'));
const Home = React.lazy(() => import('@tonkeeper/uikit/dist/pages/home/Home'));
@@ -77,6 +78,8 @@ const queryClient = new QueryClient({
}
});
+const TARGET_ENV = 'twa';
+
export const App = () => {
return (
@@ -211,7 +214,7 @@ export const Loader: FC<{ sdk: IAppSdk }> = ({ sdk }) => {
const { data: account } = useAccountState();
const { data: auth } = useAuthState();
- const tonendpoint = useTonendpoint(sdk.version, activeWallet?.network, activeWallet?.lang);
+ const tonendpoint = useTonendpoint(TARGET_ENV, sdk.version, activeWallet?.network, activeWallet?.lang);
const { data: config } = useTonenpointConfig(tonendpoint);
const navigate = useNavigate();
@@ -350,6 +353,14 @@ const MainPages: FC<{ showQrScan: boolean }> = ({ showQrScan }) => {
}
/>
+ }>
+
+
+ }
+ />
-
+