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]}
|
||||
onClick={
|
||||
item.isMenu
|
||||
? () => setMenuOpen((v) => (v ? 0 : Math.random()))
|
||||
? () => {
|
||||
tg.hapticFeedback.click();
|
||||
setMenuOpen((v) => (v ? 0 : Math.random()));
|
||||
}
|
||||
: active
|
||||
? () => {}
|
||||
: () => navigateRoute(item.route!)
|
||||
|
||||
Reference in New Issue
Block a user