Skip to content

Commit 8912cfb

Browse files
committed
fix: context issue with responsive drawer
1 parent 43cc364 commit 8912cfb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/components/ui/responsive-drawer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ const BREAKPOINT = 640;
3333

3434
export const ResponsiveDrawer = (
3535
props: ComponentProps<typeof Drawer | typeof Dialog>
36-
) => (useIsMobile(BREAKPOINT) ? <Drawer {...props} /> : <Dialog {...props} />);
36+
) => (
37+
<Drawer {...props}>
38+
<Dialog {...props} />
39+
</Drawer>
40+
);
3741

3842
export const ResponsiveDrawerTrigger = (
3943
props: ComponentProps<typeof DrawerTrigger | typeof DialogTrigger>

0 commit comments

Comments
 (0)