diff --git a/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx b/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx index 8c2f3f01ca..6d636d0729 100644 --- a/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx +++ b/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx @@ -15,7 +15,6 @@ import { connect } from "react-redux"; import { AppState } from "reducers"; import { getDatasource, getPluginImages } from "selectors/entitiesSelector"; import { ReduxAction } from "constants/ReduxActionConstants"; -import GSheetWarning from "assets/images/GSheet-warning.png"; import { deleteDatasource, getOAuthAccessToken, @@ -43,7 +42,6 @@ import { import { Variant } from "components/ads/common"; import { Toaster } from "components/ads/Toast"; import { PluginType } from "entities/Action"; -import FormDialogComponent from "components/editorComponents/form/FormDialogComponent"; import AnalyticsUtil from "utils/AnalyticsUtil"; interface StateProps extends JSONtoFormProps { @@ -90,21 +88,6 @@ const CreateApiButton = styled(BaseButton)` } `; -const ButtonsContainer = styled.div` - display: flex; - width: 100%; - justify-content: flex-end; - align-items: center; - padding: 10px; -`; - -const WarningContainer = styled.div` - display: flex; - width: 100%; - align-items: center; - flex-direction: column; -`; - class DatasourceSaaSEditor extends JSONtoForm { componentDidMount() { super.componentDidMount(); @@ -165,63 +148,6 @@ class DatasourceSaaSEditor extends JSONtoForm { return this.renderForm(content); } - saasInfoForm = (options: any) => { - const { - match: { - params: { applicationId, datasourceId, pageId }, - }, - isSaving, - } = this.props; - return ( -
- - - The integration is yet to be verified by google, so you will be - shown a safety warning. To continue authorization, please first - click on "Show Advanced", and second "Go to - Appsmith.com" - - Google Sheet Warning - - - - { - AnalyticsUtil.logEvent("GSHEET_AUTH_INIT", { - applicationId, - datasourceId, - pageId, - }); - this.save( - redirectAuthorizationCode( - pageId, - datasourceId, - PluginType.SAAS, - ), - ); - }} - size="small" - text="Continue" - /> - -
- ); - }; - renderDataSourceConfigForm = (sections: any) => { const { match: { @@ -281,21 +207,28 @@ class DatasourceSaaSEditor extends JSONtoForm { } text="Delete" /> - - } + { + AnalyticsUtil.logEvent("GSHEET_AUTH_INIT", { + applicationId, + datasourceId, + pageId, + }); + this.save( + redirectAuthorizationCode( + pageId, + datasourceId, + PluginType.SAAS, + ), + ); + }} + size="small" + text="Continue" />