@@ -2,7 +2,6 @@ import { memo, useCallback, useState } from 'react';
22import { Alert , Image , StyleSheet , View } from 'react-native' ;
33import { Box , Stack , Text } from '@/design-system' ;
44import { PanelSheet } from '@/components/PanelSheet/PanelSheet' ;
5- import { HoldToActivateButton } from '@/components/hold-to-activate-button/HoldToActivateButton' ;
65import { useRewardsBalanceStore } from '@/features/rnbw-rewards/stores/rewardsBalanceStore' ;
76import { prepareRewardsClaim , submitRewardsClaim } from '@/features/rnbw-rewards/utils/claimRewards' ;
87import { RNBW_SYMBOL } from '@/features/rnbw-rewards/constants' ;
@@ -14,6 +13,7 @@ import watchingAlert from '@/utils/watchingAlert';
1413import * as i18n from '@/languages' ;
1514import rnbwCoinImage from '@/assets/rnbw.png' ;
1615import { useStableValue } from '@/hooks/useStableValue' ;
16+ import { RnbwHoldToActivateButton } from '@/features/rnbw-membership/components/RnbwHoldToActivateButton' ;
1717
1818export const RnbwRewardsClaimSheet = memo ( function RnbwRewardsClaimSheet ( ) {
1919 const { goBack, navigate } = useNavigation ( ) ;
@@ -66,17 +66,12 @@ export const RnbwRewardsClaimSheet = memo(function RnbwRewardsClaimSheet() {
6666 </ Text >
6767 </ Stack >
6868 </ Stack >
69- < Box width = "full" paddingHorizontal = "20px" >
70- < HoldToActivateButton
69+ < Box width = "full" >
70+ < RnbwHoldToActivateButton
71+ isProcessing = { isProcessing }
7172 label = { i18n . t ( i18n . l . button . hold_to_authorize . hold_to_claim ) }
73+ onActivate = { handleClaim }
7274 processingLabel = { i18n . t ( i18n . l . button . hold_to_authorize . claiming ) }
73- onLongPress = { handleClaim }
74- isProcessing = { isProcessing }
75- backgroundColor = "white"
76- disabledBackgroundColor = "white"
77- progressColor = "black"
78- showBiometryIcon
79- style = { styles . button }
8075 />
8176 </ Box >
8277 </ Stack >
@@ -88,7 +83,7 @@ export const RnbwRewardsClaimSheet = memo(function RnbwRewardsClaimSheet() {
8883const styles = StyleSheet . create ( {
8984 content : {
9085 paddingTop : 36 ,
91- paddingBottom : 36 ,
86+ paddingBottom : 20 ,
9287 paddingHorizontal : 24 ,
9388 } ,
9489 coinImage : {
0 commit comments