Skip to content

Commit

Permalink
include in new web
Browse files Browse the repository at this point in the history
  • Loading branch information
latter-bolden committed Dec 6, 2024
1 parent e08502e commit 89f58f2
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions apps/tlon-web-new/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Provider as TamaguiProvider } from '@tloncorp/app/provider';
import { AppDataProvider } from '@tloncorp/app/provider/AppDataProvider';
import { sync } from '@tloncorp/shared';
import * as store from '@tloncorp/shared/store';
import { LoadingSpinner, View } from '@tloncorp/ui';
import { LoadingSpinner, StoreProvider, View } from '@tloncorp/ui';
import cookies from 'browser-cookies';
import { usePostHog } from 'posthog-js/react';
import React, { PropsWithChildren, useEffect, useState } from 'react';
Expand Down Expand Up @@ -184,18 +184,20 @@ const App = React.memo(function AppComponent() {
<MigrationCheck>
<SafeAreaProvider>
<TamaguiProvider defaultTheme={isDarkMode ? 'dark' : 'light'}>
{dbIsLoaded ? (
<AppRoutes isLoaded={dbIsLoaded} />
) : (
<View
height="100%"
width="100%"
justifyContent="center"
alignItems="center"
>
<LoadingSpinner />
</View>
)}
<StoreProvider>
{dbIsLoaded ? (
<AppRoutes isLoaded={dbIsLoaded} />
) : (
<View
height="100%"
width="100%"
justifyContent="center"
alignItems="center"
>
<LoadingSpinner />
</View>
)}
</StoreProvider>
</TamaguiProvider>
</SafeAreaProvider>
</MigrationCheck>
Expand Down

0 comments on commit 89f58f2

Please sign in to comment.