File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed
src/components/safe/steps Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import { z } from "zod";
36
36
37
37
import { uploadFile } from "@/common/uploads" ;
38
38
import { Checkbox } from "@/components/ui/checkbox" ;
39
+ import { LinearCombobox } from "@/components/ui/combobox" ;
39
40
import { Input } from "@/components/ui/input" ;
40
41
import { invariant } from "@/lib/error" ;
41
42
import { TAG } from "@/lib/tags" ;
@@ -229,21 +230,12 @@ function PredefinedTemplateSelect() {
229
230
render = { ( { field } ) => (
230
231
< FormItem >
231
232
< 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 >
247
239
< FormMessage className = "text-xs font-light" />
248
240
</ FormItem >
249
241
) }
You can’t perform that action at this time.
0 commit comments