diff --git a/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx b/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx index d8a8c94ae8..a2165f8215 100644 --- a/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx +++ b/app/client/src/pages/Editor/IDE/EditorPane/AddQuery.tsx @@ -1,5 +1,5 @@ import React, { useCallback, useMemo } from "react"; -import { Button, Flex, List, Text } from "design-system"; +import { Flex, List, Text } from "design-system"; import type { ListItemProps } from "design-system"; import { useDispatch, useSelector } from "react-redux"; import keyBy from "lodash/keyBy"; @@ -20,6 +20,7 @@ import { useFeatureFlag } from "utils/hooks/useFeatureFlag"; import { getPagePermissions } from "selectors/editorSelectors"; import { FEATURE_FLAG } from "@appsmith/entities/FeatureFlag"; import { createMessage, PAGES_PANE_TEXTS } from "@appsmith/constants/messages"; +import SegmentAddHeader from "./components/SegmentAddHeader"; const StyledList = styled(List)` padding: 0; @@ -94,33 +95,19 @@ const AddQuery = () => { }, [pageId]); return ( - <> - - - {createMessage(PAGES_PANE_TEXTS.query_create_tab_title)} - - )} - + {Object.keys(files).map((key) => { return ( - + { }, [widgets]); return ( - + {widgets && widgets.children && widgets.children.length > 0 && canManagePages && ( - + )} - + {widgets?.children?.map((child) => ( string; + onCloseClick: () => void; +} + +const Container = styled(Flex)` + padding-right: var(--ads-v2-spaces-2); + background-color: var(--ads-v2-color-gray-50); +`; + +const SegmentAddHeader = (props: Props) => { + return ( + + + {createMessage(props.titleMessage)} + +