From 5703b493abe25cc7bd86087ecde6b59fc98ba2cd Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Fri, 29 Nov 2024 09:42:02 -0600 Subject: [PATCH] style changes default card animation setup --- components/Global/card.tsx | 4 ++-- components/Home/helpers/recent-artists.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Global/card.tsx b/components/Global/card.tsx index 90d9ff67..3e6f5f97 100644 --- a/components/Global/card.tsx +++ b/components/Global/card.tsx @@ -21,8 +21,8 @@ export function Card(props: CardProps) { elevate size="$4" animation="bouncy" - hoverStyle={{ scale: 0.925 }} - pressStyle={{ scale: 0.875 }} + hoverStyle={props.onPress ? { scale: 0.925 } : {}} + pressStyle={props.onPress ? { scale: 0.875 } : {}} borderRadius={25} {...cardDimensions} {...props} diff --git a/components/Home/helpers/recent-artists.tsx b/components/Home/helpers/recent-artists.tsx index a303c75d..136b6c2c 100644 --- a/components/Home/helpers/recent-artists.tsx +++ b/components/Home/helpers/recent-artists.tsx @@ -25,7 +25,7 @@ export default function RecentArtists({ navigation }: ProvidedHomeProps): React. return ( { navigation.navigate('Artist',