diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/deploy/deploy.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/deploy/deploy.tsx index 97efc0aad..af8289a74 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/deploy/deploy.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/deploy/deploy.tsx @@ -3,7 +3,6 @@ import { useCallback, useState } from 'react' import { Loader2 } from 'lucide-react' import { Button, Rocket, Tooltip } from '@/components/emcn' -import { cn } from '@/lib/utils' import { DeployModal } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/components' import { useCurrentWorkflow } from '@/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-current-workflow' import type { WorkspaceUserPermissions } from '@/hooks/use-user-permissions' @@ -101,40 +100,25 @@ export function Deploy({ activeWorkflowId, userPermissions, className }: DeployP return 'Deploy workflow' } - const buttonContent = ( - <> - {isDeploying ? ( - - ) : ( - - )} - {changeDetected ? 'Update' : isDeployed ? 'Active' : 'Deploy'} - - ) - return ( <> - {isDisabled ? ( -
- {buttonContent} -
- ) : ( + - )} +
{getTooltipText()}