revert changes to ConfigurationPage
@@ -23,7 +23,6 @@ import { WithConnectorForm } from '../../components';
import resolvers from '../../resolvers';
import routes from '../../routes';
import { useOAuthFlow } from '../../useOAuthFlow';
-// tslint:disable:no-console
export interface IConfigurationPageRouteParams {
connectorId: string;
@@ -118,16 +117,12 @@ export const ConfigurationPage: React.FunctionComponent = () => {
* @param configuredProperties
*/
const onSave = (configuredProperties: { [key: string]: string }) => {
- console.log('hello from onSave');
- // tslint:disable-next-line:no-console
- console.table(configuredProperties);
-
- /*history.push(
+ history.push(
resolvers.create.review({
configuredProperties,
connector,
})
- );*/
+ );
};
/**
@@ -186,17 +181,7 @@ export const ConfigurationPage: React.FunctionComponent = () => {
isValid,
isValidating,
validateForm,
- }) => {
- // tslint:disable:no-console
-
- const tempHandle = (data?: any, something?: any) => {
- console.log('temp handle');
- // console.log('data: ' + data);
- console.table(data);
- console.log('something: ' + something);
- submitForm();
- };
- return (
+ }) => (
<ConnectionCreatorLayout
toggle={
<ConnectionCreatorToggleList
@@ -226,8 +211,7 @@ export const ConfigurationPage: React.FunctionComponent = () => {
<ConnectionCreatorFooter
cancelHref={resolvers.connections()}
backHref={resolvers.create.selectConnector()}
- // onNext={submitForm}
- onNext={tempHandle}
+ onNext={submitForm}
isNextDisabled={isSubmitting || !isValid}
isNextLoading={isSubmitting}
isLastStep={false}
@@ -280,12 +264,6 @@ export const ConfigurationPage: React.FunctionComponent = () => {
);
}
- const handleSubmitTemp = (data?: any) => {
- // tslint:disable-next-line:no-console
- console.log('data: ' + JSON.stringify(data));
- // handleSubmit();
- };
-
return (
<ConnectorConfigurationForm
i18nFormTitle={connector.name}
@@ -297,7 +275,7 @@ export const ConfigurationPage: React.FunctionComponent = () => {
ev.preventDefault();
validateForm();
}}
- handleSubmit={handleSubmitTemp}
+ handleSubmit={handleSubmit}
validationResults={validationResults}
>
<>
@@ -317,8 +295,7 @@ export const ConfigurationPage: React.FunctionComponent = () => {
</WithLoader>
}
/>
- );
- }}
+ )}
</WithConnectorForm>
</>
)}
