mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
refactor: remove haptic feedback on menu open for header avatar, stats card, and sort menu components
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user