@@ -14,6 +14,7 @@ import { PinInputComponent } from "@/components/PinInputComponent";
14
14
import { useState } from "react" ;
15
15
import { useFacade } from "@/data/facades" ;
16
16
import { CheckBox } from "@ui-kitten/components" ;
17
+ import { TermsOfService } from "@/components/TermsOfService/TermsOfService" ;
17
18
18
19
const MIN_PIN_LENGTH = 4 ;
19
20
const MAX_PIN_LENGTH = 8 ;
@@ -78,6 +79,10 @@ const styles = StyleSheet.create({
78
79
fontSize : 16 ,
79
80
fontWeight : "600" ,
80
81
} ,
82
+ termsContainer : {
83
+ width : "100%" ,
84
+ marginBottom : 16 ,
85
+ } ,
81
86
} ) ;
82
87
83
88
export default function CreatePin ( ) {
@@ -218,6 +223,12 @@ export default function CreatePin() {
218
223
placeholder = "Enter account name"
219
224
autoFocus
220
225
/>
226
+ < View style = { styles . termsContainer } >
227
+ < TermsOfService
228
+ checked = { confirmChecked }
229
+ onChange = { setConfirmChecked }
230
+ />
231
+ </ View >
221
232
</ View >
222
233
) : (
223
234
< PinInputComponent
@@ -230,35 +241,15 @@ export default function CreatePin() {
230
241
/>
231
242
) }
232
243
233
- < View style = { { width : "100%" , gap : 16 } } >
234
- { step === "name" && (
235
- < CheckBox checked = { confirmChecked } onChange = { setConfirmChecked } >
236
- < Hyperlink
237
- linkDefault
238
- linkStyle = { { color : "#2980b9" } }
239
- linkText = { ( url ) =>
240
- url === "https://oreowallet.com/agreement"
241
- ? "Oreowallet Terms of Service"
242
- : url
243
- }
244
- >
245
- < Text >
246
- I agree to the https://oreowallet.com/agreement and agree to
247
- upload my view keys to the Oreowallet server.
248
- </ Text >
249
- </ Hyperlink >
250
- </ CheckBox >
251
- ) }
252
- < TouchableOpacity
253
- style = { [ styles . button , ! isStepValid ( ) && styles . buttonDisabled ] }
254
- disabled = { ! isStepValid ( ) }
255
- onPress = { handleContinue }
256
- >
257
- < Text style = { styles . buttonText } >
258
- { step === "name" ? "Create Account" : "Continue" }
259
- </ Text >
260
- </ TouchableOpacity >
261
- </ View >
244
+ < TouchableOpacity
245
+ style = { [ styles . button , ! isStepValid ( ) && styles . buttonDisabled ] }
246
+ disabled = { ! isStepValid ( ) }
247
+ onPress = { handleContinue }
248
+ >
249
+ < Text style = { styles . buttonText } >
250
+ { step === "name" ? "Create Account" : "Continue" }
251
+ </ Text >
252
+ </ TouchableOpacity >
262
253
</ View >
263
254
</ KeyboardAvoidingView >
264
255
) ;
0 commit comments