From a0875a964fd13ebc33ac1cd1cc5f6b40f9ac5ed2 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 16 Apr 2024 13:04:46 +0200 Subject: [PATCH 1/3] fix: background color check Signed-off-by: Jan --- packages/app/components/CredentialCard.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/app/components/CredentialCard.tsx b/packages/app/components/CredentialCard.tsx index 226e6909..506072bd 100644 --- a/packages/app/components/CredentialCard.tsx +++ b/packages/app/components/CredentialCard.tsx @@ -50,11 +50,22 @@ export default function CredentialCard({ ) + const getPressStyle = () => { + if (!onPress) return {} + if (backgroundImage?.url) return { opacity: 0.9 } + return { backgroundColor: darken(bgColor ?? '$grey-900', 0.1) } + } + + const getBgColor = () => { + if (backgroundImage?.url) return '$transparent' + return bgColor ?? '$grey-900' + } + return ( Date: Tue, 16 Apr 2024 14:06:49 +0200 Subject: [PATCH 2/3] fix: const assignment --- packages/app/components/CredentialCard.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/app/components/CredentialCard.tsx b/packages/app/components/CredentialCard.tsx index 506072bd..e949a8e3 100644 --- a/packages/app/components/CredentialCard.tsx +++ b/packages/app/components/CredentialCard.tsx @@ -56,16 +56,13 @@ export default function CredentialCard({ return { backgroundColor: darken(bgColor ?? '$grey-900', 0.1) } } - const getBgColor = () => { - if (backgroundImage?.url) return '$transparent' - return bgColor ?? '$grey-900' - } + const bgColorValue = backgroundImage?.url ? '$transparent' : bgColor ?? '$grey-900' return ( Date: Tue, 16 Apr 2024 14:07:35 +0200 Subject: [PATCH 3/3] fix: version --- apps/expo/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/expo/package.json b/apps/expo/package.json index d0813e02..566bef1d 100644 --- a/apps/expo/package.json +++ b/apps/expo/package.json @@ -1,6 +1,6 @@ { "name": "expo-app", - "version": "1.3.3", + "version": "1.3.4", "main": "expo-router/entry", "private": true, "scripts": {