Replace Redux + Redux-Saga with React Query (useMutation/useQuery) for server state and React Context for UI/form state across all modules: login, registration, forgot-password, reset-password, progressive- profiling, and common-components. Port of master commits0d709d15and93bd0f24, adapted for @openedx/frontend-base: - getSiteConfig() instead of getConfig() - useAppConfig() for per-app configuration - @tanstack/react-query as peerDependency (shell provides QueryClient) - CurrentAppProvider instead of AppProvider Also fixes EnvironmentTypes circular dependency in site.config.test.tsx by using string literal instead of enum import. Co-Authored-By: Jesus Balderrama <jesus.balderrama.wgu@gmail.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
369 B
TypeScript
Executable File
20 lines
369 B
TypeScript
Executable File
import { Outlet } from 'react-router-dom';
|
|
import { CurrentAppProvider } from '@openedx/frontend-base';
|
|
|
|
import { appId } from './constants';
|
|
import {
|
|
registerIcons,
|
|
} from './common-components';
|
|
|
|
import './sass/_style.scss';
|
|
|
|
registerIcons();
|
|
|
|
const Main = () => (
|
|
<CurrentAppProvider appId={appId}>
|
|
<Outlet />
|
|
</CurrentAppProvider>
|
|
);
|
|
|
|
export default Main;
|