diff --git a/packages/web/src/components/TestSubstep/index.tsx b/packages/web/src/components/TestSubstep/index.tsx index 09a5f0c7..b7c3c764 100644 --- a/packages/web/src/components/TestSubstep/index.tsx +++ b/packages/web/src/components/TestSubstep/index.tsx @@ -108,7 +108,7 @@ function TestSubstep(props: TestSubstepProps): React.ReactElement { {!!error?.graphQLErrors?.length && ( {serializeErrors(error.graphQLErrors).map((error: any) => (
{error.message}
@@ -116,7 +116,9 @@ function TestSubstep(props: TestSubstepProps): React.ReactElement {
)} - {step.webhookUrl && } + {step.webhookUrl && ( + + )} {hasNoOutput && ( diff --git a/packages/web/src/components/WebhookUrlInfo/index.tsx b/packages/web/src/components/WebhookUrlInfo/index.tsx index cc5ca10d..82a1a3c1 100644 --- a/packages/web/src/components/WebhookUrlInfo/index.tsx +++ b/packages/web/src/components/WebhookUrlInfo/index.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import Typography from '@mui/material/Typography'; +import type { AlertProps } from '@mui/material/Alert'; import { generateExternalLink } from '../../helpers/translation-values'; import { WEBHOOK_DOCS } from '../../config/urls'; @@ -9,13 +10,13 @@ import { Alert } from './style'; type WebhookUrlInfoProps = { webhookUrl: string; -}; +} & AlertProps; function WebhookUrlInfo(props: WebhookUrlInfoProps): React.ReactElement { - const { webhookUrl } = props; + const { webhookUrl, ...alertProps } = props; return ( - +