Skip to content

Commit

Permalink
refactor(DEV-13634): remove theme provider form iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
saladNights committed Dec 23, 2024
1 parent f51b8aa commit f20a833
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/sdk-drop-in/src/apps/MoniteIframeApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ import { moniteIframeAppComponents } from '@/lib/moniteIframeAppComponents';
import { useMoniteIframeAppSlots } from '@/lib/useIframeAppSlots';
import { css, Global } from '@emotion/react';
import { type APISchema } from '@monite/sdk-react';
import { createTheme, CssBaseline, ThemeProvider } from '@mui/material';
import { CssBaseline } from '@mui/material';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { EntityIdLoader, SDKDemoAPIProvider } from '@team-monite/sdk-demo';

import { DropInMoniteProvider } from '../lib/DropInMoniteProvider';

// todo::implement google fonts support
// import { getFontFaceStyles } from './fontStyles.ts';

export const MoniteIframeApp = () => {
const queryClient = useMemo(() => new QueryClient(), []);

Expand Down Expand Up @@ -76,7 +73,7 @@ const MoniteIframeAppComponent = ({
fetchToken,
}}
>
<ThemeProvider theme={createTheme(theme)}>
<>
<CssBaseline enableColorScheme />
<Global
styles={css`
Expand Down Expand Up @@ -130,7 +127,7 @@ const MoniteIframeAppComponent = ({
)}
</Routes>
</BrowserRouter>
</ThemeProvider>
</>
</DropInMoniteProvider>
);
};

0 comments on commit f20a833

Please sign in to comment.