{pages.map(p => {
const Page = p.component;
- return
;
+ return
;
})}
);
@@ -133,10 +135,24 @@ export default function Index() {
});
};
+ const bind = useDrag(
+ ({ down, movement: [mx] }) => {
+ console.log('DRAGGING SIDE', mx);
+ },
+ {
+ axis: 'x',
+ }
+ );
+
// This is an example app layout. We've got a hidden menu that will be toggled
//
return (
-