fix(phase-a): actually remove Neo provider JSX from App.tsx

Python heredoc string replacement missed the JSX wrapper lines due to
indentation mismatch. Rewrote App.tsx directly. Previous commit removed
the imports but left NeoUserProvider/NeoInstituteProvider in the JSX,
causing ReferenceError at runtime (Vite builds without tsc so it
compiled clean despite the undefined references).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
kcar 2026-05-25 13:22:24 +00:00
parent 7b546c933e
commit fb1795fd2b

View File

@ -7,26 +7,20 @@ import { UserProvider } from './contexts/UserContext';
import AppRoutes from './AppRoutes';
import React from 'react';
// Wrap the entire app in a memo to prevent unnecessary re-renders
const App = React.memo(() => (
<BrowserRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }}>
<ThemeProvider theme={theme}>
<AuthProvider>
<UserProvider>
<NeoUserProvider>
<NeoInstituteProvider>
<TLDrawProvider>
<AppRoutes />
</TLDrawProvider>
</NeoInstituteProvider>
</NeoUserProvider>
</UserProvider>
</AuthProvider>
</ThemeProvider>
</BrowserRouter>
));
// Add display name for better debugging
App.displayName = import.meta.env.VITE_APP_NAME;
export default App;