Skip to content

Commit c5ea312

Browse files
brunobuddyclaude
andcommitted
fix(frontend): use correct Select API in ParameterRow
The Select component uses a simple wrapper API, not the shadcn Select components. Fixed import to use the correct API. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 033445f commit c5ea312

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

packages/manifest/frontend/src/components/flow/ParameterRow.tsx

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ import { Button } from '@/components/ui/shadcn/button';
44
import { Input } from '@/components/ui/shadcn/input';
55
import { Label } from '@/components/ui/shadcn/label';
66
import { Checkbox } from '@/components/ui/shadcn/checkbox';
7-
import {
8-
Select,
9-
SelectContent,
10-
SelectItem,
11-
SelectTrigger,
12-
SelectValue,
13-
} from '@/components/ui/select';
7+
import { Select } from '@/components/ui/select';
148

159
const PARAMETER_TYPES: { value: ParameterType; label: string }[] = [
1610
{ value: 'string', label: 'String' },
@@ -97,20 +91,11 @@ export function ParameterRow({
9791
{/* Type dropdown */}
9892
<Select
9993
value={parameter.type}
100-
onValueChange={handleTypeChange}
94+
onValueChange={(value) => handleTypeChange(value as string)}
95+
options={PARAMETER_TYPES}
10196
disabled={isFieldDisabled}
102-
>
103-
<SelectTrigger className={`min-w-[110px] ${isSystem ? 'cursor-not-allowed' : ''}`}>
104-
<SelectValue />
105-
</SelectTrigger>
106-
<SelectContent>
107-
{PARAMETER_TYPES.map((type) => (
108-
<SelectItem key={type.value} value={type.value}>
109-
{type.label}
110-
</SelectItem>
111-
))}
112-
</SelectContent>
113-
</Select>
97+
className={`min-w-[110px] ${isSystem ? 'cursor-not-allowed' : ''}`}
98+
/>
11499

115100
{/* Optional checkbox */}
116101
<Label

0 commit comments

Comments
 (0)