diff --git a/apps/builder/components/editor/StepsSideBar/StepCard.tsx b/apps/builder/components/editor/StepsSideBar/StepCard.tsx index b669f6089..5a4302f8d 100644 --- a/apps/builder/components/editor/StepsSideBar/StepCard.tsx +++ b/apps/builder/components/editor/StepsSideBar/StepCard.tsx @@ -1,4 +1,4 @@ -import { Flex, HStack, StackProps, Text } from '@chakra-ui/react' +import { Flex, HStack, StackProps, Text, Tooltip } from '@chakra-ui/react' import { StepType, DraggableStepType } from 'models' import { useStepDnd } from 'contexts/GraphDndContext' import React, { useEffect, useState } from 'react' @@ -8,8 +8,10 @@ import { StepTypeLabel } from './StepTypeLabel' export const StepCard = ({ type, onMouseDown, + isDisabled = false, }: { type: DraggableStepType + isDisabled?: boolean onMouseDown: (e: React.MouseEvent, type: DraggableStepType) => void }) => { const { draggedStepType } = useStepDnd() @@ -22,33 +24,36 @@ export const StepCard = ({ const handleMouseDown = (e: React.MouseEvent) => onMouseDown(e, type) return ( - - - {!isMouseDown ? ( - <> - - - - ) : ( - - Placeholder - - )} - - + + + + {!isMouseDown ? ( + <> + + + + ) : ( + + Placeholder + + )} + + + ) } diff --git a/apps/builder/components/editor/StepsSideBar/StepSideBar.tsx b/apps/builder/components/editor/StepsSideBar/StepSideBar.tsx index 88b20f486..428025888 100644 --- a/apps/builder/components/editor/StepsSideBar/StepSideBar.tsx +++ b/apps/builder/components/editor/StepsSideBar/StepSideBar.tsx @@ -150,7 +150,12 @@ export const StepsSideBar = () => { {Object.values(IntegrationStepType).map((type) => ( - + ))}