File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as React from 'react'
22import { ActivityIndicator , View } from 'react-native'
33
44import { useBackEvent } from '../../hooks/useBackEvent'
5- import { useHandler } from '../../hooks/useHandler'
65import { lstrings } from '../../locales/strings'
76import type { EdgeAppSceneProps } from '../../types/routerTypes'
87import { makePeriodicTask } from '../../util/PeriodicTask'
@@ -107,14 +106,6 @@ export const RampPendingScene: React.FC<Props> = props => {
107106 // Handle back navigation
108107 useBackEvent ( navigation , onCancel )
109108
110- const handleClose = useHandler ( ( ) => {
111- onClose ( )
112- } )
113-
114- const handleComplete = useHandler ( ( ) => {
115- onComplete ?.( )
116- } )
117-
118109 return (
119110 < SceneWrapper hasTabs >
120111 < SceneContainer headerTitle = { title } >
@@ -140,18 +131,18 @@ export const RampPendingScene: React.FC<Props> = props => {
140131 < SceneButtons
141132 primary = { {
142133 label : lstrings . ramp_kyc_complete_button ,
143- onPress : handleComplete
134+ onPress : onComplete
144135 } }
145136 secondary = { {
146137 label : lstrings . string_cancel_cap ,
147- onPress : handleClose
138+ onPress : onClose
148139 } }
149140 />
150141 ) : (
151142 < SceneButtons
152143 primary = { {
153144 label : lstrings . string_close_cap ,
154- onPress : handleClose
145+ onPress : onClose
155146 } }
156147 />
157148 ) ) }
You can’t perform that action at this time.
0 commit comments