From e90d202bec52617b6417fa7424e3c63a05191a93 Mon Sep 17 00:00:00 2001 From: Rodrigo Arze Leon Date: Wed, 30 Oct 2024 17:13:10 -0400 Subject: [PATCH] Remove max height in form and update styles so content adjusts better to container/iframe --- .../hocs/WithConnectorConnect.tsx | 48 ++++++++++--------- packages/ui/components/SchemaForm.tsx | 2 +- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/packages/engine-frontend/hocs/WithConnectorConnect.tsx b/packages/engine-frontend/hocs/WithConnectorConnect.tsx index 3f980d7f..d2d94631 100644 --- a/packages/engine-frontend/hocs/WithConnectorConnect.tsx +++ b/packages/engine-frontend/hocs/WithConnectorConnect.tsx @@ -150,7 +150,7 @@ export const WithConnectorConnect = ({ if (err === CANCELLATION_TOKEN) { return } - console.log(ccfg.connector.displayName + ' connection error:',err) + console.log(ccfg.connector.displayName + ' connection error:', err) toast({ title: `Failed to connect to ${ccfg.connector.displayName}`, // description: `${err}`, @@ -196,8 +196,12 @@ export const WithConnectorConnect = ({ label: resource ? 'Reconnect' : 'Connect', })} - - + +
@@ -205,8 +209,8 @@ export const WithConnectorConnect = ({ {ccfg.connector.name === 'greenhouse' && (
- -
+ +

Generate a custom API key with{' '} )} - - ccfg.connector.schemas.resourceSettings ?? schema - } - formData={{}} - // formData should be non-null at this point, we should fix the typing - loading={connect.isLoading} - onSubmit={({formData}) => { - console.log('resource form submitted', formData) - connect.mutate({connectorConfigId: ccfg.id, settings: formData}) - }} - hideSubmitButton - /> - {/* Children here */} - +

+