From 92a1b596d75ae9318aa716cfabfee734042d18eb Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Thu, 26 Dec 2024 11:49:21 +0530 Subject: [PATCH] fix: Minor issues --- .../components/CommonEditorForm/CommonEditorForm.tsx | 6 +++++- app/client/src/ce/constants/messages.ts | 1 + app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx | 5 +++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx b/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx index 8ed8e1ca3418..0568618920df 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/components/CommonEditorForm/CommonEditorForm.tsx @@ -52,7 +52,11 @@ const CommonEditorForm = (props: Props) => { const paramsCount = getParamsCount(actionParams, datasourceHeaders); return ( - + "Datasources in your workspace"; export const DATASOURCE_LIST_BLANK_DESCRIPTION = () => "Connect a datasource to write your first query"; export const DATASOURCE_BLANK_STATE_MESSAGE = () => "No datasources to display"; +export const DATASOURCE_BLANK_STATE_CTA = () => "Bring your data"; // Create New Apps Intermediary step export const CREATE_NEW_APPS_STEP_TITLE = () => "How would you like to start?"; diff --git a/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx b/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx index 914f070f8123..f5f644f19ef3 100644 --- a/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx +++ b/app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx @@ -17,11 +17,12 @@ import { useLocation } from "react-router"; import { createMessage, DATA_PANE_TITLE, + DATASOURCE_BLANK_STATE_CTA, DATASOURCE_LIST_BLANK_DESCRIPTION, } from "ee/constants/messages"; import PaneHeader from "./PaneHeader"; import { useEditorType } from "ee/hooks"; -import { INTEGRATION_TABS } from "../../../../constants/routes"; +import { INTEGRATION_TABS } from "constants/routes"; import type { AppState } from "ee/reducers"; import { getCurrentAppWorkspace } from "ee/selectors/selectedWorkspaceSelectors"; import { useFeatureFlag } from "utils/hooks/useFeatureFlag"; @@ -99,7 +100,7 @@ const DataSidePane = (props: DataSidePaneProps) => { () => ({ className: "t--add-datasource-button-blank-screen", testId: "t--add-datasource-button-blank-screen", - text: createMessage(DATA_PANE_TITLE), + text: createMessage(DATASOURCE_BLANK_STATE_CTA), onClick: canCreateDatasource ? addButtonClickHandler : undefined, }), [addButtonClickHandler, canCreateDatasource],