We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7751a37 commit c3dd574Copy full SHA for c3dd574
src/components/ui/sheet/Sheet.tsx
@@ -1,6 +1,7 @@
1
import { atom, useStore } from 'jotai'
2
import type { FC, PropsWithChildren, ReactNode } from 'react'
3
-import React, {
+import * as React from 'react'
4
+import {
5
forwardRef,
6
useEffect,
7
useImperativeHandle,
@@ -98,7 +99,9 @@ export const PresentSheet = forwardRef<
98
99
100
return (
101
<Root dismissible={dismissible} {...nextRootProps}>
- <Drawer.Trigger asChild={triggerAsChild}>{children}</Drawer.Trigger>
102
+ {!!children && (
103
+ <Drawer.Trigger asChild={triggerAsChild}>{children}</Drawer.Trigger>
104
+ )}
105
<Drawer.Portal>
106
<Drawer.Content
107
style={{
0 commit comments