Skip to content

Commit 39573f3

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
improvement(ui): use chip fields in workflow search and replace
1 parent febf5d9 commit 39573f3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

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

3-
import { Button, Combobox, Input } from '@sim/emcn'
3+
import { Button, ChipCombobox, ChipInput } from '@sim/emcn'
44
import type { WorkflowSearchReplacementOption } from '@/lib/workflows/search-replace/types'
55

66
interface ReplacementControlsProps {
@@ -33,7 +33,7 @@ export function ReplacementControls({
3333
return (
3434
<div className='space-y-2'>
3535
{usesResourceReplacement ? (
36-
<Combobox
36+
<ChipCombobox
3737
options={compatibleResourceOptions.map((option) => ({
3838
label: option.label,
3939
value: option.value,
@@ -47,7 +47,7 @@ export function ReplacementControls({
4747
disabled={disabled || compatibleResourceOptions.length === 0}
4848
/>
4949
) : (
50-
<Input
50+
<ChipInput
5151
value={replacement}
5252
placeholder='Replace'
5353
disabled={disabled}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { type RefObject, useCallback, useEffect, useMemo, useRef, useState } from 'react'
4-
import { Button, cn, Input, toast } from '@sim/emcn'
4+
import { Button, ChipInput, cn, toast } from '@sim/emcn'
55
import { ChevronDown, ChevronRight, ChevronUp, X } from '@sim/emcn/icons'
66
import { useParams } from 'next/navigation'
77
import { useShallow } from 'zustand/react/shallow'
@@ -600,7 +600,7 @@ function WorkflowSearchReplacePanel({ focusRef }: WorkflowSearchReplacePanelProp
600600
)}
601601
/>
602602
</Button>
603-
<Input
603+
<ChipInput
604604
ref={searchInputRef}
605605
value={query}
606606
placeholder='Search'

0 commit comments

Comments
 (0)