Replace binary PWA icons with SVG
This commit is contained in:
1 parent
ccb24b2606
commit
2111ce35fd
48 files changed
+5594
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { Box, Paper } from '@mui/material';
|
||||
import { PropsWithChildren } from 'react';
|
||||
import { useSwipe } from '../hooks/useSwipe';
|
||||
|
||||
interface SwipeableRowProps extends PropsWithChildren {
|
||||
onSwipeLeft?: () => void;
|
||||
onSwipeRight?: () => void;
|
||||
}
|
||||
|
||||
export const SwipeableRow = ({ children, onSwipeLeft, onSwipeRight }: SwipeableRowProps) => {
|
||||
const gestureHandlers = useSwipe({ onSwipeLeft, onSwipeRight });
|
||||
|
||||
return (
|
||||
<Paper sx={{ p: 1, mb: 1 }} {...gestureHandlers}>
|
||||
<Box>{children}</Box>
|
||||
</Paper>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user