Skip to content

Commit

Permalink
Update checkbox component
Browse files Browse the repository at this point in the history
  • Loading branch information
chloehjung15 committed Jul 17, 2023
1 parent 3804a52 commit cca5ac2
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions screen/boltcard/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,18 @@ const BoltCardCreate = () => {
onPress={() => setShowDetails(!showDetails)}
/>
{showDetails && <>
<BlueText style={{borderWidth:1, borderColor:'#999', padding:10}} onPress={()=>togglePrivacy()}>
<ListItem.CheckBox checkedColor="#0070FF" checkedIcon="check" checked={enhancedPrivacy} onPress={()=>togglePrivacy()} />
Enable Private UID (Hides card UID. One-way operation, can't undo)
</BlueText>
<View style={{paddingHorizontal:5, marginVertical: 10}}>
<CheckBox
center
checkedColor="#0070FF"
checked={enhancedPrivacy}
onPress={togglePrivacy}
disabled={writeMode}
title="Enable Private UID (Hides card UID. One-way operation, can't undo)"
/>
</View>

<View>
<View style={{marginBottom: 20}}>
<BlueText style={styles.monospace}>lnurl:</BlueText>
<BlueText style={styles.monospace}>{lnurlw_base}</BlueText>
<BlueText style={styles.monospace}>Private UID: {enhancedPrivacy ? "yes" : "no"}</BlueText>
Expand Down

0 comments on commit cca5ac2

Please sign in to comment.