Skip to content

Commit b779967

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

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎apps/sim/components/workflow/workflow-preview-action.tsx‎

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

6-
type WorkflowPreviewActionProps = Omit<
7-
ComponentProps<typeof Button>,
8-
'variant' | 'size' | 'iconSize' | 'iconPadding' | 'className'
9-
> & { 'aria-label': string }
6+
interface WorkflowPreviewActionProps
7+
extends Omit<
8+
ComponentProps<typeof Button>,
9+
'variant' | 'size' | 'iconSize' | 'iconPadding' | 'type' | 'className'
10+
> {
11+
'aria-label': string
12+
}
1013

1114
/** Solid corner action shared by embedded workflow previews. */
1215
export const WorkflowPreviewAction = forwardRef<HTMLButtonElement, WorkflowPreviewActionProps>(

0 commit comments

Comments
 (0)