@@ -81,60 +41,48 @@ const Navigation = props => {
)
}
-const NavigationSheet = () => {
+const NavigationSheetView = props => {
useEffect(() => {
- f7.sheet.open('#view-navigation-sheet');
+ if(Device.phone) {
+ f7.sheet.open('#view-navigation-sheet', true);
+ }
+
+ return () => {}
});
- const [stateHeight, setHeight] = useState('45%');
- const [stateOpacity, setOpacity] = useState(1);
-
- const [stateStartY, setStartY] = useState();
- const [isNeedClose, setNeedClose] = useState(false);
-
- const handleTouchStart = (event) => {
- const touchObj = event.changedTouches[0];
- setStartY(parseInt(touchObj.clientY));
- };
-
- const handleTouchMove = (event) => {
- const touchObj = event.changedTouches[0];
- const dist = parseInt(touchObj.clientY) - stateStartY;
-
- if (dist < 0) { // to top
- setHeight('90%');
- setOpacity(1);
- setNeedClose(false);
- } else if (dist < 80) {
- setHeight('45%');
- setOpacity(1);
- setNeedClose(false);
- } else {
- setNeedClose(true);
- setOpacity(0.6);
- }
- };
-
- const handleTouchEnd = (event) => {
- const touchObj = event.changedTouches[0];
- const swipeEnd = parseInt(touchObj.clientY);
- const dist = swipeEnd - stateStartY;
-
- if (isNeedClose) {
- closeCurComments();
- } else if (stateHeight === '90%' && dist > 20) {
- setHeight('45%');
- }
- };
-
return (
-
- */}
+
)
-};
+}
-export default Navigation;
\ No newline at end of file
+const NavigationView = props => {
+
+ return (
+ !Device.phone
+ ?
+
+
+ :
+
+
+ )
+}
+
+export default NavigationView;
\ No newline at end of file