Address lint warnings (#10188)
This commit is contained in:
@@ -161,7 +161,9 @@ export function SettingsScreen({}: Props) {
|
||||
p => p.did === account.did,
|
||||
)}
|
||||
pendingDid={pendingDid}
|
||||
onPressSwitchAccount={onPressSwitchAccount}
|
||||
onPressSwitchAccount={(account, logContext) =>
|
||||
void onPressSwitchAccount(account, logContext)
|
||||
}
|
||||
/>
|
||||
))}
|
||||
<AddAccountRow />
|
||||
@@ -245,7 +247,7 @@ export function SettingsScreen({}: Props) {
|
||||
</SettingsList.ItemText>
|
||||
</SettingsList.LinkItem>
|
||||
<SettingsList.PressableItem
|
||||
onPress={() => Linking.openURL(HELP_DESK_URL)}
|
||||
onPress={() => void Linking.openURL(HELP_DESK_URL)}
|
||||
label={_(msg`Help`)}
|
||||
accessibilityHint={_(msg`Opens helpdesk in browser`)}>
|
||||
<SettingsList.ItemIcon icon={CircleQuestionIcon} />
|
||||
@@ -392,7 +394,7 @@ function DevOptions() {
|
||||
} = useApplyPullRequestOTAUpdate()
|
||||
const [actyNotifNudged, setActyNotifNudged] = useActivitySubscriptionsNudged()
|
||||
|
||||
const resetOnboarding = async () => {
|
||||
const resetOnboarding = () => {
|
||||
navigation.navigate('Home')
|
||||
onboardingDispatch({type: 'start'})
|
||||
Toast.show(_(msg`Onboarding reset`))
|
||||
@@ -407,7 +409,7 @@ function DevOptions() {
|
||||
const lastEmailConfirm = new Date()
|
||||
// wind back 3 days
|
||||
lastEmailConfirm.setDate(lastEmailConfirm.getDate() - 3)
|
||||
persisted.write('reminders', {
|
||||
void persisted.write('reminders', {
|
||||
...persisted.get('reminders'),
|
||||
lastEmailConfirm: lastEmailConfirm.toISOString(),
|
||||
})
|
||||
@@ -431,7 +433,7 @@ function DevOptions() {
|
||||
style: 'default',
|
||||
text: 'Apply',
|
||||
onPress: (channel?: string) => {
|
||||
tryApplyUpdate(channel ?? '')
|
||||
void tryApplyUpdate(channel ?? '')
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -473,7 +475,7 @@ function DevOptions() {
|
||||
</SettingsList.ItemText>
|
||||
</SettingsList.PressableItem>
|
||||
<SettingsList.PressableItem
|
||||
onPress={() => resetOnboarding()}
|
||||
onPress={() => void resetOnboarding()}
|
||||
label={_(msg`Reset onboarding state`)}>
|
||||
<SettingsList.ItemText>
|
||||
<Trans>Reset onboarding state</Trans>
|
||||
@@ -496,7 +498,7 @@ function DevOptions() {
|
||||
</SettingsList.PressableItem>
|
||||
)}
|
||||
<SettingsList.PressableItem
|
||||
onPress={() => clearAllStorage()}
|
||||
onPress={() => void clearAllStorage()}
|
||||
label={_(msg`Clear all storage data`)}>
|
||||
<SettingsList.ItemText>
|
||||
<Trans>Clear all storage data (restart after this)</Trans>
|
||||
@@ -513,7 +515,7 @@ function DevOptions() {
|
||||
) : null}
|
||||
{IS_NATIVE && isCurrentlyRunningPullRequestDeployment ? (
|
||||
<SettingsList.PressableItem
|
||||
onPress={revertToEmbedded}
|
||||
onPress={() => void revertToEmbedded()}
|
||||
label={_(msg`Unapply Pull Request`)}>
|
||||
<SettingsList.ItemText>
|
||||
<Trans>Unapply Pull Request {currentChannel}</Trans>
|
||||
@@ -543,7 +545,7 @@ function DevOptions() {
|
||||
<Button
|
||||
onPress={() => {
|
||||
device.set([PolicyUpdate202508], false)
|
||||
agent.bskyAppRemoveNuxs([PolicyUpdate202508])
|
||||
void agent.bskyAppRemoveNuxs([PolicyUpdate202508])
|
||||
Toast.show(`Done`, {
|
||||
type: 'info',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user