Skip to content

Commit

Permalink
Revert "Adding AntdThemeWrapper to ProviderWrapper for testing purposes"
Browse files Browse the repository at this point in the history
This reverts commit 1ab8677.
  • Loading branch information
rusackas committed Jul 18, 2024
1 parent 8b6ba25 commit 1bdbc8f
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions superset-frontend/spec/helpers/ProviderWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,20 @@
import { ThemeProvider } from '@superset-ui/core';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { QueryParamProvider } from 'use-query-params';
import { AntdThemeProvider } from 'src/components/AntdThemeProvider';

export function ProviderWrapper(props: any) {
const { children, theme } = props;

return (
<ThemeProvider theme={theme}>
<AntdThemeProvider>
<Router>
<QueryParamProvider
ReactRouterRoute={Route}
stringifyOptions={{ encode: false }}
>
{children}
</QueryParamProvider>
</Router>
</AntdThemeProvider>
<Router>
<QueryParamProvider
ReactRouterRoute={Route}
stringifyOptions={{ encode: false }}
>
{children}
</QueryParamProvider>
</Router>
</ThemeProvider>
);
}

0 comments on commit 1bdbc8f

Please sign in to comment.