Add bulk migration

This commit is contained in:
schroda
2026-03-13 22:41:28 +01:00
parent c4c2a616f6
commit f6302fe3aa
75 changed files with 4207 additions and 669 deletions

View File

@@ -10,17 +10,21 @@ import React, { type JSX } from 'react';
import CircularProgress from '@mui/material/CircularProgress';
import Box from '@mui/material/Box';
interface IProps {
export function LoadingPlaceholder({
children,
shouldRender,
component,
componentProps,
usePadding,
size,
}: {
shouldRender?: boolean | (() => boolean);
children?: React.ReactNode;
component?: string | React.FunctionComponent<any> | React.ComponentClass<any, any>;
componentProps?: any;
usePadding?: boolean;
}
export function LoadingPlaceholder(props: IProps) {
const { children, shouldRender, component, componentProps, usePadding } = props;
size?: number;
}) {
let condition = true;
if (shouldRender !== undefined) {
condition = shouldRender instanceof Function ? shouldRender() : shouldRender;
@@ -47,7 +51,7 @@ export function LoadingPlaceholder(props: IProps) {
justifyContent: 'center',
}}
>
<CircularProgress thickness={5} />
<CircularProgress thickness={5} size={size} />
</Box>
);
}

View File

@@ -83,7 +83,7 @@ export const SnackbarWithDescription = memo(
>
<TitleComponent>{message}</TitleComponent>
{actualDescription}
{isDescriptionTooLong || (isGraphqlException && graphqlStackTrace) ? (
{(isDescriptionTooLong || (isGraphqlException && graphqlStackTrace)) && (
<Button
onClick={() => {
Confirmation.show({
@@ -108,8 +108,6 @@ export const SnackbarWithDescription = memo(
>
{t`Show more`}
</Button>
) : (
''
)}
</Alert>
</SnackbarContent>