feat(Editor): show webhook info in test substep

This commit is contained in:
Ali BARIN
2022-12-07 23:42:01 +01:00
parent 3c62f182ab
commit 346a706e41
8 changed files with 81 additions and 12 deletions

View File

@@ -6,22 +6,15 @@ import DialogContentText from '@mui/material/DialogContentText';
import Dialog from '@mui/material/Dialog';
import LoadingButton from '@mui/lab/LoadingButton';
import { FieldValues, SubmitHandler } from 'react-hook-form';
import { IJSONObject } from '@automatisch/types';
import type { IApp, IJSONObject, IField } from '@automatisch/types';
import useFormatMessage from 'hooks/useFormatMessage';
import computeAuthStepVariables from 'helpers/computeAuthStepVariables';
import { processStep } from 'helpers/authenticationSteps';
import InputCreator from 'components/InputCreator';
import type { IApp, IField } from '@automatisch/types';
import { generateExternalLink } from '../../helpers/translation-values';
import { Form } from './style';
const generateDocsLink = (link: string) => (str: string) =>
(
<a href={link} target="_blank">
{str}
</a>
);
type AddAppConnectionProps = {
onClose: (response: Record<string, unknown>) => void;
application: IApp;
@@ -112,7 +105,7 @@ export default function AddAppConnection(
<Alert severity="info" sx={{ fontWeight: 300 }}>
{formatMessage('addAppConnection.callToDocs', {
appName: name,
docsLink: generateDocsLink(authDocUrl),
docsLink: generateExternalLink(authDocUrl),
})}
</Alert>
)}