diff --git a/src/common-ui/BottomNavigation.tsx b/src/common-ui/BottomNavigation.tsx index 63a341bb..7589a606 100644 --- a/src/common-ui/BottomNavigation.tsx +++ b/src/common-ui/BottomNavigation.tsx @@ -8,6 +8,7 @@ import { BOTTOM_NAVIGATION_Z_INDEX } from '@/constants/zIndex'; import { BsBookFill } from 'react-icons/bs'; import { useGETNotificationListQuery } from '@/notification/api/notification'; import useAuthStore from '@/store/auth'; +import useWebview from '@/common/service/hooks/useWebview'; /** * @@ -29,13 +30,23 @@ const BottomNavigation = () => { (notification) => !notification.isChecked, ); + const { postMessage } = useWebview(); + + const onClickLink = () => { + postMessage('vibrate', null); + }; + return ( <> - + {pathname === `${navigatePath.MAIN}` && ( )} @@ -43,7 +54,7 @@ const BottomNavigation = () => { )} - + {pathname === `${navigatePath.FRIEND}` && ( )} @@ -53,7 +64,11 @@ const BottomNavigation = () => { {!!isCheckNotification && ( - + {pathname === `${navigatePath.NOTIFICATION}` && ( )} @@ -65,7 +80,7 @@ const BottomNavigation = () => { )} {!isCheckNotification && ( - + {pathname === `${navigatePath.NOTIFICATION}` && ( )} @@ -74,7 +89,7 @@ const BottomNavigation = () => { )} )} - + {pathname === `${navigatePath.PROFILE}` && ( )} diff --git a/src/common/service/hooks/useWebview.ts b/src/common/service/hooks/useWebview.ts index a4546bad..67691efd 100644 --- a/src/common/service/hooks/useWebview.ts +++ b/src/common/service/hooks/useWebview.ts @@ -22,6 +22,7 @@ export interface PostBridgeParams { visitBookmark: { url: string; }; + vibrate: null; } function useWebview() { return React.useMemo(() => {