refactor: remove haptic feedback on menu open for header avatar, stats card, and sort menu components

This commit is contained in:
2026-07-12 18:27:44 -04:00
parent 77af611490
commit 5db6a44b60
3 changed files with 0 additions and 3 deletions
@@ -92,7 +92,6 @@ export function StatsCard(props: StatsCardProps) {
title: periodLabels[value],
state: value === period ? "on" : "off",
}))}
onOpenMenu={() => Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)}
onPressAction={({ nativeEvent }) => {
const nextPeriod = periods.find((value) => value === nativeEvent.event);
if (nextPeriod) onPeriodChange(nextPeriod);
@@ -39,7 +39,6 @@ export function HeaderAvatar() {
attributes: { destructive: true },
},
]}
onOpenMenu={() => Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)}
onPressAction={({ nativeEvent }) => {
if (nativeEvent.event === "settings") {
navigate("/(tabs)/(settings)");
@@ -43,7 +43,6 @@ export function SortMenu({ sortBy, sortDirection, onSortChange }: SortMenuProps)
title: option.label,
state: option.sortBy === sortBy && option.sortDirection === sortDirection ? "on" : "off",
}))}
onOpenMenu={() => Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)}
onPressAction={({ nativeEvent }) => {
const option = sortOptions.find(
(candidate) => `${candidate.sortBy}-${candidate.sortDirection}` === nativeEvent.event,