Skip to content

Commit 1351598

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(ui): align shared control props with component conventions
1 parent d3c2fff commit 1351598

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
import { type ComponentProps, forwardRef } from 'react'
44
import { Button, chipHoverSurfaceClass, cn } from '@sim/emcn'
55

6-
type CanvasControlButtonProps = Omit<
7-
ComponentProps<typeof Button>,
8-
'variant' | 'size' | 'iconSize' | 'iconPadding' | 'className'
9-
> & { active?: boolean; 'aria-label': string }
6+
interface CanvasControlButtonProps
7+
extends Omit<
8+
ComponentProps<typeof Button>,
9+
'variant' | 'size' | 'iconSize' | 'iconPadding' | 'className'
10+
> {
11+
active?: boolean
12+
'aria-label': string
13+
}
1014

1115
/** Fixed-size action in the canvas navigation toolbar. */
1216
export const CanvasControlButton = forwardRef<HTMLButtonElement, CanvasControlButtonProps>(

0 commit comments

Comments
 (0)