apply core-imports codemod to all packages and plugins

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-17 17:56:24 +02:00
parent 9b9a8f3925
commit d453c05dc3
541 changed files with 1549 additions and 1321 deletions
@@ -14,19 +14,19 @@
* limitations under the License.
*/
import {
ApiProvider,
ApiRegistry,
configApiRef,
ConfigReader,
errorApiRef,
} from '@backstage/core';
import { renderInTestApp } from '@backstage/test-utils';
import { lightTheme } from '@backstage/theme';
import { ThemeProvider } from '@material-ui/core';
import React from 'react';
import WelcomePage from './WelcomePage';
import {
ApiProvider,
ApiRegistry,
ConfigReader,
} from '@backstage/core-app-api';
import { configApiRef, errorApiRef } from '@backstage/core-plugin-api';
describe('WelcomePage', () => {
it('should render', async () => {
const { baseElement } = await renderInTestApp(
@@ -24,6 +24,7 @@ import {
ListItemText,
Link,
} from '@material-ui/core';
import {
Content,
InfoCard,
@@ -33,9 +34,9 @@ import {
ContentHeader,
SupportButton,
WarningPanel,
useApi,
configApiRef,
} from '@backstage/core';
} from '@backstage/core-components';
import { useApi, configApiRef } from '@backstage/core-plugin-api';
const WelcomePage = () => {
const appTitle =
+1 -1
View File
@@ -18,7 +18,7 @@ import {
createPlugin,
createRoutableExtension,
createRouteRef,
} from '@backstage/core';
} from '@backstage/core-plugin-api';
export const rootRouteRef = createRouteRef({
title: 'Welcome',