File tree 1 file changed +2
-12
lines changed
packages/kit-headless/src/components/dialog
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 6
6
Slot ,
7
7
component$ ,
8
8
createContextId ,
9
- useComputed$ ,
10
9
useContext ,
11
10
useContextProvider ,
12
11
useOn ,
@@ -105,20 +104,11 @@ export const Trigger = component$(() => {
105
104
) ;
106
105
} ) ;
107
106
108
- export type PortalProps = {
109
- type ?: 'modal' | 'bottom-sheet' | 'side-nav' ;
110
- } ;
111
-
112
- export const Portal = component$ ( ( props : PortalProps ) => {
107
+ export const Portal = component$ ( ( ) => {
113
108
const context = useContext ( dialogContext ) ;
114
- const classes = useComputed$ ( ( ) => [ props . type ?? 'modal' ] ) ;
115
109
116
110
return (
117
- < dialog
118
- class = { classes }
119
- ref = { context . state . dialogRef }
120
- onClick$ = { context . closeOnDialogClick }
121
- >
111
+ < dialog ref = { context . state . dialogRef } onClick$ = { context . closeOnDialogClick } >
122
112
< Slot />
123
113
</ dialog >
124
114
) ;
You can’t perform that action at this time.
0 commit comments