Skip to content

Commit

Permalink
fix: browser page added to desktop, extension and twa apps
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Jan 22, 2024
1 parent feab266 commit 71f6e73
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
10 changes: 10 additions & 0 deletions apps/desktop/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -239,6 +241,14 @@ export const Content: FC<{
</Suspense>
}
/>
<Route
path={any(AppRoute.browser)}
element={
<Suspense fallback={<BrowserSkeletonPage />}>
<Browser />
</Suspense>
}
/>
<Route
path={any(AppRoute.settings)}
element={
Expand Down
11 changes: 10 additions & 1 deletion apps/extension/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { GlobalListStyle } from '@tonkeeper/uikit/dist/components/List';
import { Loading } from '@tonkeeper/uikit/dist/components/Loading';
import MemoryScroll from '@tonkeeper/uikit/dist/components/MemoryScroll';
import {
ActivitySkeletonPage,
ActivitySkeletonPage, BrowserSkeletonPage,
CoinSkeletonPage,
HomeSkeleton,
SettingsSkeletonPage
Expand Down Expand Up @@ -56,6 +56,7 @@ import { useAnalytics, useAppWidth } from './libs/hoolks';

const ImportRouter = React.lazy(() => 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'));
Expand Down Expand Up @@ -282,6 +283,14 @@ export const Content: FC<{
</Suspense>
}
/>
<Route
path={any(AppRoute.browser)}
element={
<Suspense fallback={<BrowserSkeletonPage />}>
<Browser />
</Suspense>
}
/>
<Route
path={any(AppRoute.settings)}
element={
Expand Down
11 changes: 10 additions & 1 deletion apps/twa/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { GlobalListStyle } from '@tonkeeper/uikit/dist/components/List';
import { Loading } from '@tonkeeper/uikit/dist/components/Loading';
import MemoryScroll from '@tonkeeper/uikit/dist/components/MemoryScroll';
import {
ActivitySkeletonPage,
ActivitySkeletonPage, BrowserSkeletonPage,
CoinSkeletonPage,
HomeSkeleton,
SettingsSkeletonPage
Expand Down Expand Up @@ -60,6 +60,7 @@ import { useAnalytics, useTwaAppViewport } from './libs/hooks';

const Initialize = React.lazy(() => 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'));
Expand Down Expand Up @@ -350,6 +351,14 @@ const MainPages: FC<{ showQrScan: boolean }> = ({ showQrScan }) => {
</Suspense>
}
/>
<Route
path={any(AppRoute.browser)}
element={
<Suspense fallback={<BrowserSkeletonPage />}>
<Browser />
</Suspense>
}
/>
<Route
path={any(AppRoute.settings)}
element={
Expand Down

0 comments on commit 71f6e73

Please sign in to comment.