1
1
import { ToVueOptions } from '@builder.io/mitosis' ;
2
- import { $ , Signal , component$ , useSignal , useVisibleTask$ } from '@builder.io/qwik' ;
2
+ import { $ , Signal , component$ , useSignal } from '@builder.io/qwik' ;
3
3
import { OutputFramework } from '~/services/compile' ;
4
4
import Select from './select' ;
5
5
@@ -67,14 +67,7 @@ const getOptions = (target:OutputFramework) => {
67
67
68
68
export default component$ (
69
69
( { options, target} : { options : Options , target :Signal < OutputFramework > } ) => {
70
- const showModal = useSignal ( true ) ;
71
-
72
- useVisibleTask$ ( ( ) => {
73
- if ( target . value === 'angular' ) {
74
- showModal . value = false
75
- }
76
- } )
77
-
70
+ const showModal = useSignal ( false ) ;
78
71
79
72
80
73
return (
@@ -83,7 +76,7 @@ export default component$(
83
76
showModal . value = ! showModal . value
84
77
} ) } class = { 'px-3 py-1.5 outline-0 rounded text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-purple-990 bg-primary focus:ring-primary bg-opacity-10 border border-primary border-opacity-50 transition-colors duration-200 ease-in-out appearance-none' } > options</ button >
85
78
86
- { showModal . value && < div class = { "absolute top-40 bottom-40 left-40 right-40 bg-purple-990 z-50 p-10" } >
79
+ { showModal . value && < div class = { "absolute top-40 bottom-40 left-40 right-40 bg-purple-990 z-50 p-10 max-w-2xl " } >
87
80
< h1 > { target . value } settings.</ h1 >
88
81
89
82
< div class = "w-full flex flex-col gap-4 pt-4" >
0 commit comments