From b33e553b29b4e16dd844580c489a66996352e8e4 Mon Sep 17 00:00:00 2001 From: aryanshridhar Date: Mon, 1 Mar 2021 00:14:41 +0530 Subject: [PATCH] UnregisterEntity: Removed Dialog modal fullscreen prop (#4685). --- .changeset/swift-cows-thank.md | 5 +++++ .../UnregisterEntityDialog/UnregisterEntityDialog.tsx | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .changeset/swift-cows-thank.md 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?