From cff5ec67deae7125b9e70ba6d780c0a319781a14 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 29 Apr 2022 19:13:34 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=82=20Temporarily=20disable=20Make.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/StepsSideBar/StepCard.tsx | 61 ++++++++++--------- .../editor/StepsSideBar/StepSideBar.tsx | 7 ++- 2 files changed, 39 insertions(+), 29 deletions(-) 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) => ( - + ))}