Merge pull request #15479 from backstage/rugvip/notheme

remove unnecessary usages of ThemeProvider
This commit is contained in:
Patrik Oldsberg
2023-01-02 10:45:54 +01:00
committed by GitHub
33 changed files with 314 additions and 546 deletions
@@ -16,8 +16,6 @@
import { ExploreTool } from '@backstage/plugin-explore-common';
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
import { lightTheme } from '@backstage/theme';
import { ThemeProvider } from '@material-ui/core';
import { waitFor } from '@testing-library/react';
import React from 'react';
import { exploreApiRef } from '../../api';
@@ -29,11 +27,9 @@ describe('<ToolExplorerContent />', () => {
};
const Wrapper = ({ children }: { children?: React.ReactNode }) => (
<ThemeProvider theme={lightTheme}>
<TestApiProvider apis={[[exploreApiRef, exploreApi]]}>
{children}
</TestApiProvider>
</ThemeProvider>
<TestApiProvider apis={[[exploreApiRef, exploreApi]]}>
{children}
</TestApiProvider>
);
beforeEach(() => {