Skip to content

Commit

Permalink
Drawer is swipeable
Browse files Browse the repository at this point in the history
  • Loading branch information
olivia-stannah committed Aug 22, 2022
1 parent f4bd554 commit 26072de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/sdk-react-next/src/components/TransitDirections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ const TransitDirections: NextPage = () => {
<SwipeableDrawer
anchor="bottom"
open={open}
onClick={() => toggleDrawer(!open)}
onClose={() => toggleDrawer(false)}
onOpen={() => toggleDrawer(true)}
swipeAreaWidth={drawerBleeding}
Expand All @@ -144,7 +143,7 @@ const TransitDirections: NextPage = () => {
}}
>
<PullerMobile>
<Puller />
<Puller onClick={() => toggleDrawer(!open)}/>
<Heading />
</PullerMobile>
<SideBarMobile>{sideBar}</SideBarMobile>
Expand Down Expand Up @@ -204,7 +203,6 @@ const PullerMobile = styled(Box)(() => ({
paddingTop: 16,
paddingLeft: 20,
paddingRight: 20,
pointerEvents: 'all',
position: 'absolute',
right: 0,
top: -drawerBleeding,
Expand All @@ -217,4 +215,5 @@ const Puller = styled(Box)(({ theme }) => ({
height: 8,
width: 32,
marginBottom: 8,
pointerEvents: 'all',
}))

0 comments on commit 26072de

Please sign in to comment.