Skip to content

Commit bac801d

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(ui): retain muted canvas icon and import conventions
1 parent b0f4bd2 commit bac801d

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/canvas-control-button.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { type ComponentProps, forwardRef } from 'react'
1+
import type { ComponentProps } from 'react'
2+
import { forwardRef } from 'react'
23
import { Button } from '@sim/emcn'
34

45
interface CanvasControlButtonProps

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/workflow-controls.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use client'
22

3+
/** biome-ignore assist/source/organizeImports: Keep the local feature import after shared hooks and stores, per AGENTS.md. */
34
import { memo, useCallback, useRef, useState } from 'react'
45
import {
56
Button,
@@ -24,14 +25,15 @@ import { useShallow } from 'zustand/react/shallow'
2425
import { useSession } from '@/lib/auth/auth-client'
2526
import { useRegisterGlobalCommands } from '@/app/workspace/[workspaceId]/providers/global-commands-provider'
2627
import { createCommand } from '@/app/workspace/[workspaceId]/utils/commands-utils'
27-
import { CanvasControlButton } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/canvas-control-button'
2828
import { useShowActionBar, useUpdateGeneralSetting } from '@/hooks/queries/general-settings'
2929
import { useCanvasViewport } from '@/hooks/use-canvas-viewport'
3030
import { useCollaborativeWorkflow } from '@/hooks/use-collaborative-workflow'
3131
import { useCanvasModeStore } from '@/stores/canvas-mode'
3232
import { useUndoRedoStore } from '@/stores/undo-redo'
3333
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
3434

35+
import { CanvasControlButton } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/canvas-control-button'
36+
3537
const logger = createLogger('WorkflowControls')
3638

3739
/**

‎packages/emcn/src/components/button/button.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const buttonVariants = cva(
7777
*/
7878
{ size: 'icon', variant: 'quiet', className: 'text-[var(--text-icon-muted)]' },
7979
{ size: 'icon', variant: 'ghost', className: 'text-[var(--text-icon-muted)]' },
80+
{ size: 'icon', variant: 'ghost-hover', className: 'text-[var(--text-icon-muted)]' },
8081
],
8182
defaultVariants: {
8283
variant: 'default',

0 commit comments

Comments
 (0)