chore: update react imports

Signed-off-by: Paul Schultz <pschultz@pobox.com>
This commit is contained in:
Paul Schultz
2025-01-28 10:21:17 -06:00
parent 02981a2377
commit 2e26579e06
1282 changed files with 2776 additions and 3434 deletions
-1
View File
@@ -14,7 +14,6 @@
* limitations under the License.
*/
import React from 'react';
import {
ExtensionBoundary,
coreExtensionData,
-1
View File
@@ -14,7 +14,6 @@
* limitations under the License.
*/
import React from 'react';
import {
createExtension,
coreExtensionData,
-1
View File
@@ -14,7 +14,6 @@
* limitations under the License.
*/
import React from 'react';
import {
createExtension,
coreExtensionData,
+4 -3
View File
@@ -14,11 +14,12 @@
* limitations under the License.
*/
import React, {
import {
ComponentType,
PropsWithChildren,
ReactNode,
useState,
JSX,
} from 'react';
import {
AppRootWrapperBlueprint,
@@ -94,7 +95,7 @@ export const AppRoot = createExtension({
});
}
let content: React.ReactNode = inputs.children.get(
let content: ReactNode = inputs.children.get(
coreExtensionData.reactElement,
);
@@ -182,7 +183,7 @@ export interface AppRouterProps {
children?: ReactNode;
SignInPageComponent?: ComponentType<SignInPageProps>;
RouterComponent?: ComponentType<PropsWithChildren<{}>>;
extraElements?: Array<React.JSX.Element>;
extraElements?: Array<JSX.Element>;
}
function DefaultRouter(props: PropsWithChildren<{}>) {
-1
View File
@@ -14,7 +14,6 @@
* limitations under the License.
*/
import React from 'react';
import {
createExtension,
coreExtensionData,
@@ -14,7 +14,6 @@
* limitations under the License.
*/
import React from 'react';
import {
UnifiedThemeProvider,
themes as builtinThemes,
@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import { SignInPageBlueprint } from '@backstage/frontend-plugin-api';
import { SignInPage } from '@backstage/core-components';
@@ -15,7 +15,7 @@
*/
import { renderInTestApp } from '@backstage/frontend-test-utils';
import React, { act, useEffect } from 'react';
import { act, useEffect } from 'react';
import {
AppRootElementBlueprint,
DialogApi,
+2 -2
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import React, { useEffect, useState } from 'react';
import { Fragment, useEffect, useState } from 'react';
import {
AppRootElementBlueprint,
DialogApi,
@@ -110,7 +110,7 @@ export const dialogDisplayAppRootElement =
const dialogApi = apis.get(dialogApiRef);
if (!isInternalDialogApi(dialogApi)) {
return originalFactory({
element: <React.Fragment />,
element: <Fragment />,
});
}
return originalFactory({
@@ -14,8 +14,6 @@
* limitations under the License.
*/
import React from 'react';
// TODO: Dependency on MUI should be removed from core packages
import Button from '@material-ui/core/Button';
import {
-1
View File
@@ -16,7 +16,6 @@
import { AlertDisplay, OAuthRequestDialog } from '@backstage/core-components';
import { AppRootElementBlueprint } from '@backstage/frontend-plugin-api';
import React from 'react';
export const oauthRequestDialogAppRootElement = AppRootElementBlueprint.make({
name: 'oauth-request-dialog',