From 44098491431107f95f81337fb0b3d8fd9f988a60 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 4 Oct 2018 13:57:15 +0100 Subject: [PATCH] make the entire reward card area respond to touch --- app/src/component/rewardCard/view.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/component/rewardCard/view.js b/app/src/component/rewardCard/view.js index 16d10fec..7182d4e2 100644 --- a/app/src/component/rewardCard/view.js +++ b/app/src/component/rewardCard/view.js @@ -62,7 +62,11 @@ class RewardCard extends React.PureComponent { const claimed = !!reward.transaction_id; return ( - + { + if (!isPending && !claimed) { + this.onClaimPress(); + } + }}> {!isPending && { if (!claimed) { @@ -87,7 +91,7 @@ class RewardCard extends React.PureComponent { {reward.reward_amount} LBC - + ); } };