diff --git a/.changeset/swift-cows-thank.md b/.changeset/swift-cows-thank.md new file mode 100644 index 0000000000..e4cd562c79 --- /dev/null +++ b/.changeset/swift-cows-thank.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Removed fullScreen property from UnregisterEntity Dialog modal. diff --git a/plugins/catalog/src/components/UnregisterEntityDialog/UnregisterEntityDialog.tsx b/plugins/catalog/src/components/UnregisterEntityDialog/UnregisterEntityDialog.tsx index ef4196e9c5..b8903df2fa 100644 --- a/plugins/catalog/src/components/UnregisterEntityDialog/UnregisterEntityDialog.tsx +++ b/plugins/catalog/src/components/UnregisterEntityDialog/UnregisterEntityDialog.tsx @@ -28,8 +28,6 @@ import { DialogContentText, DialogTitle, Typography, - useMediaQuery, - useTheme, } from '@material-ui/core'; import Alert from '@material-ui/lab/Alert'; import React from 'react'; @@ -79,8 +77,6 @@ export const UnregisterEntityDialog = ({ entity, }: Props) => { const { value: entities, loading, error } = useColocatedEntities(entity); - const theme = useTheme(); - const fullScreen = useMediaQuery(theme.breakpoints.down('sm')); const catalogApi = useApi(catalogApiRef); const alertApi = useApi(alertApiRef); const configApi = useApi(configApiRef); @@ -97,7 +93,7 @@ export const UnregisterEntityDialog = ({ }; return ( - + Are you sure you want to unregister this entity?