Merge pull request #18536 from GLundh/fix-spacing

Unprocessed Entities: Fix spacing for success message
This commit is contained in:
Ben Lambert
2023-07-04 17:24:55 +02:00
committed by GitHub
3 changed files with 10 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-unprocessed-entities': patch
---
Fixed spacing for success message
@@ -23,15 +23,14 @@ import {
TableColumn,
} from '@backstage/core-components';
import { useApi } from '@backstage/core-plugin-api';
import { BackstageThemeOptions } from '@backstage/theme';
import { Box, Typography, makeStyles } from '@material-ui/core';
import { Box, Theme, Typography, makeStyles } from '@material-ui/core';
import { UnprocessedEntity } from '../types';
import { EntityDialog } from './EntityDialog';
import { catalogUnprocessedEntitiesApiRef } from '../api';
import useAsync from 'react-use/lib/useAsync';
const useStyles = makeStyles((theme: BackstageThemeOptions) => ({
const useStyles = makeStyles((theme: Theme) => ({
errorBox: {
color: theme.palette.status.error,
backgroundColor: theme.palette.errorBackground,
@@ -46,6 +45,7 @@ const useStyles = makeStyles((theme: BackstageThemeOptions) => ({
successMessage: {
background: theme.palette.infoBackground,
color: theme.palette.infoText,
padding: theme.spacing(2),
},
}));
@@ -21,7 +21,7 @@ import {
TableColumn,
Table,
} from '@backstage/core-components';
import { Typography, makeStyles } from '@material-ui/core';
import { Theme, Typography, makeStyles } from '@material-ui/core';
import { UnprocessedEntity } from '../types';
@@ -29,9 +29,8 @@ import { EntityDialog } from './EntityDialog';
import { useApi } from '@backstage/core-plugin-api';
import useAsync from 'react-use/lib/useAsync';
import { catalogUnprocessedEntitiesApiRef } from '../api';
import { BackstageTheme } from '@backstage/theme';
const useStyles = makeStyles((theme: BackstageTheme) => ({
const useStyles = makeStyles((theme: Theme) => ({
successMessage: {
background: theme.palette.infoBackground,
color: theme.palette.infoText,