Skip to content

Commit 200fdba

Browse files
committed
chore: add LinearCombobox and drop Select in safe-modal-safe-template
1 parent 09f9ed7 commit 200fdba

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/components/safe/steps/safe-template.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { z } from "zod";
3636

3737
import { uploadFile } from "@/common/uploads";
3838
import { Checkbox } from "@/components/ui/checkbox";
39+
import { LinearCombobox } from "@/components/ui/combobox";
3940
import { Input } from "@/components/ui/input";
4041
import { invariant } from "@/lib/error";
4142
import { TAG } from "@/lib/tags";
@@ -229,21 +230,12 @@ function PredefinedTemplateSelect() {
229230
render={({ field }) => (
230231
<FormItem>
231232
<FormLabel>Safe template</FormLabel>
232-
233-
<Select onValueChange={field.onChange} value={field.value}>
234-
<FormControl>
235-
<SelectTrigger className="w-full">
236-
<SelectValue placeholder="Select type" />
237-
</SelectTrigger>
238-
</FormControl>
239-
<SelectContent>
240-
{templateTypes.map((item) => (
241-
<SelectItem key={item.label} value={item.value}>
242-
{item.label}
243-
</SelectItem>
244-
))}
245-
</SelectContent>
246-
</Select>
233+
<div className="relative right-1">
234+
<LinearCombobox
235+
options={templateTypes}
236+
onValueChange={(option) => field.onChange(option.value)}
237+
/>
238+
</div>
247239
<FormMessage className="text-xs font-light" />
248240
</FormItem>
249241
)}

0 commit comments

Comments
 (0)