feat: add nav menu haptic feedback
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m35s
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m35s
This commit is contained in:
@@ -215,7 +215,10 @@ export default function Navigation() {
|
|||||||
entranceDelay={HORIZONTAL_ENTRANCE_DELAYS[index]}
|
entranceDelay={HORIZONTAL_ENTRANCE_DELAYS[index]}
|
||||||
onClick={
|
onClick={
|
||||||
item.isMenu
|
item.isMenu
|
||||||
? () => setMenuOpen((v) => (v ? 0 : Math.random()))
|
? () => {
|
||||||
|
tg.hapticFeedback.click();
|
||||||
|
setMenuOpen((v) => (v ? 0 : Math.random()));
|
||||||
|
}
|
||||||
: active
|
: active
|
||||||
? () => {}
|
? () => {}
|
||||||
: () => navigateRoute(item.route!)
|
: () => navigateRoute(item.route!)
|
||||||
|
|||||||
Reference in New Issue
Block a user