fix no-misused-promises lint errors on async press handlers
This commit is contained in:
@@ -188,8 +188,8 @@ export function InviteFriendsDialogInner({
|
|||||||
|
|
||||||
<View style={[a.w_full, {marginTop: 48}]}>
|
<View style={[a.w_full, {marginTop: 48}]}>
|
||||||
<ActionButtons
|
<ActionButtons
|
||||||
onShare={onShare}
|
onShare={() => void onShare()}
|
||||||
onDownload={onDownload}
|
onDownload={() => void onDownload()}
|
||||||
onScan={onScan}
|
onScan={onScan}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
@@ -243,7 +243,7 @@ export function InviteFriendsDialogInner({
|
|||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel={l`Copy invite link`}
|
accessibilityLabel={l`Copy invite link`}
|
||||||
accessibilityHint={l`Copies the canonical profile URL to the clipboard`}
|
accessibilityHint={l`Copies the canonical profile URL to the clipboard`}
|
||||||
onPress={onCopy}
|
onPress={() => void onCopy()}
|
||||||
hitSlop={8}
|
hitSlop={8}
|
||||||
style={({pressed}) => [{opacity: pressed ? 0.7 : 1}]}>
|
style={({pressed}) => [{opacity: pressed ? 0.7 : 1}]}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export function InviteScannerScreen() {
|
|||||||
label={l`Grant access`}
|
label={l`Grant access`}
|
||||||
color="primary"
|
color="primary"
|
||||||
size="large"
|
size="large"
|
||||||
onPress={() => requestPermission()}
|
onPress={() => void requestPermission()}
|
||||||
style={{marginTop: 8}}>
|
style={{marginTop: 8}}>
|
||||||
<ButtonText>{l`Grant access`}</ButtonText>
|
<ButtonText>{l`Grant access`}</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user