We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43cc364 commit 8912cfbCopy full SHA for 8912cfb
app/components/ui/responsive-drawer.tsx
@@ -33,7 +33,11 @@ const BREAKPOINT = 640;
33
34
export const ResponsiveDrawer = (
35
props: ComponentProps<typeof Drawer | typeof Dialog>
36
-) => (useIsMobile(BREAKPOINT) ? <Drawer {...props} /> : <Dialog {...props} />);
+) => (
37
+ <Drawer {...props}>
38
+ <Dialog {...props} />
39
+ </Drawer>
40
+);
41
42
export const ResponsiveDrawerTrigger = (
43
props: ComponentProps<typeof DrawerTrigger | typeof DialogTrigger>
0 commit comments