diff --git a/workspaces/bulk-import/.changeset/old-eggs-pick.md b/workspaces/bulk-import/.changeset/old-eggs-pick.md new file mode 100644 index 0000000000..59a5bd4532 --- /dev/null +++ b/workspaces/bulk-import/.changeset/old-eggs-pick.md @@ -0,0 +1,5 @@ +--- +'@red-hat-developer-hub/backstage-plugin-bulk-import': patch +--- + +Scope JSS class names with a unique seed to prevent style collisions with diff --git a/workspaces/bulk-import/plugins/bulk-import/src/components/Router.tsx b/workspaces/bulk-import/plugins/bulk-import/src/components/Router.tsx index 911c0f9343..c1f470421c 100644 --- a/workspaces/bulk-import/plugins/bulk-import/src/components/Router.tsx +++ b/workspaces/bulk-import/plugins/bulk-import/src/components/Router.tsx @@ -16,6 +16,7 @@ import { Navigate, Route, Routes } from 'react-router-dom'; +import { createGenerateClassName, StylesProvider } from '@mui/styles'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { importHistoryRouteRef } from '../routes'; @@ -24,20 +25,26 @@ import { ImportHistoryPage } from './Repositories/ImportHistoryPage'; const queryClient = new QueryClient(); +const generateClassName = createGenerateClassName({ + seed: 'bulk-import', +}); + /** * * @public */ export const Router = () => ( - - - } /> - } - /> - {/* Redirect any undefined paths to the root */} - } /> - - + + + + } /> + } + /> + {/* Redirect any undefined paths to the root */} + } /> + + + );