apply core-imports codemod to all packages and plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
createPlugin,
|
||||
createRoutableExtension,
|
||||
createRouteRef,
|
||||
} from '@backstage/core';
|
||||
} from '@backstage/core-plugin-api';
|
||||
|
||||
export const rootRouteRef = createRouteRef({
|
||||
title: 'Welcome',
|
||||
|
||||
Reference in New Issue
Block a user