Skip to content

Commit

Permalink
Remove unused storage context code
Browse files Browse the repository at this point in the history
  • Loading branch information
davidisaaclee committed Nov 22, 2024
1 parent b861edf commit dee90d5
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 90 deletions.
87 changes: 41 additions & 46 deletions apps/tlon-mobile/src/App.main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { useIsDarkMode } from '@tloncorp/app/hooks/useIsDarkMode';
import { useMigrations } from '@tloncorp/app/lib/nativeDb';
import { PlatformState } from '@tloncorp/app/lib/platformHelpers';
import { Provider as TamaguiProvider } from '@tloncorp/app/provider';
import { StorageProvider } from '@tloncorp/app/provider/StorageProvider';
import { FeatureFlagConnectedInstrumentationProvider } from '@tloncorp/app/utils/perf';
import { posthogAsync } from '@tloncorp/app/utils/posthog';
import { QueryClientProvider, queryClient } from '@tloncorp/shared/api';
Expand Down Expand Up @@ -122,52 +121,48 @@ export default function ConnectedApp() {
return (
<ErrorBoundary>
<FeatureFlagConnectedInstrumentationProvider>
<StorageProvider>
<TamaguiProvider defaultTheme={isDarkMode ? 'dark' : 'light'}>
<ShipProvider>
<NavigationContainer
theme={isDarkMode ? DarkTheme : DefaultTheme}
ref={navigationContainerRef}
>
<BranchProvider>
<PostHogProvider
client={posthogAsync}
autocapture={{
captureTouches: false,
}}
options={{
enable:
process.env.NODE_ENV !== 'test' ||
!!process.env.POST_HOG_IN_DEV,
}}
>
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaProvider>
<MigrationCheck>
<QueryClientProvider client={queryClient}>
<SignupProvider>
<PortalProvider>
<App />
</PortalProvider>
<TamaguiProvider defaultTheme={isDarkMode ? 'dark' : 'light'}>
<ShipProvider>
<NavigationContainer
theme={isDarkMode ? DarkTheme : DefaultTheme}
ref={navigationContainerRef}
>
<BranchProvider>
<PostHogProvider
client={posthogAsync}
autocapture={{
captureTouches: false,
}}
options={{
enable:
process.env.NODE_ENV !== 'test' ||
!!process.env.POST_HOG_IN_DEV,
}}
>
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaProvider>
<MigrationCheck>
<QueryClientProvider client={queryClient}>
<SignupProvider>
<PortalProvider>
<App />
</PortalProvider>

{__DEV__ && (
<DevTools
navigationContainerRef={
navigationContainerRef
}
/>
)}
</SignupProvider>
</QueryClientProvider>
</MigrationCheck>
</SafeAreaProvider>
</GestureHandlerRootView>
</PostHogProvider>
</BranchProvider>
</NavigationContainer>
</ShipProvider>
</TamaguiProvider>
</StorageProvider>
{__DEV__ && (
<DevTools
navigationContainerRef={navigationContainerRef}
/>
)}
</SignupProvider>
</QueryClientProvider>
</MigrationCheck>
</SafeAreaProvider>
</GestureHandlerRootView>
</PostHogProvider>
</BranchProvider>
</NavigationContainer>
</ShipProvider>
</TamaguiProvider>
</FeatureFlagConnectedInstrumentationProvider>
</ErrorBoundary>
);
Expand Down
12 changes: 0 additions & 12 deletions packages/app/provider/StorageProvider.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/shared/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ export * as tiptap from './logic/tiptap';
export * as utilHooks from './logic/utilHooks';
export * from './debug';
export * from './perf';
export { StorageContext, useStorageUnsafelyUnwrapped } from './storage';
31 changes: 0 additions & 31 deletions packages/shared/src/storage.ts

This file was deleted.

0 comments on commit dee90d5

Please sign in to comment.