Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update delete app password confirmation modal (#803)

authored by

GitStart and committed by
GitHub
69bcb720 a89129fc

+9 -19
+9 -19
src/view/screens/AppPasswords.tsx
··· 1 1 import React from 'react' 2 2 import {StyleSheet, TouchableOpacity, View} from 'react-native' 3 - import {Alert} from 'view/com/util/Alert' 4 3 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' 5 4 import {ScrollView} from 'react-native-gesture-handler' 6 5 import {Text} from '../com/util/text/Text' ··· 160 159 const store = useStores() 161 160 162 161 const onDelete = React.useCallback(async () => { 163 - Alert.alert( 164 - 'Delete App Password', 165 - `Are you sure you want to delete the app password "${name}"?`, 166 - [ 167 - { 168 - text: 'Cancel', 169 - style: 'cancel', 170 - }, 171 - { 172 - text: 'Delete', 173 - style: 'destructive', 174 - onPress: async () => { 175 - await store.me.deleteAppPassword(name) 176 - Toast.show('App password deleted') 177 - }, 178 - }, 179 - ], 180 - ) 162 + store.shell.openModal({ 163 + name: 'confirm', 164 + title: 'Delete App Password', 165 + message: `Are you sure you want to delete the app password "${name}"?`, 166 + async onPressConfirm() { 167 + await store.me.deleteAppPassword(name) 168 + Toast.show('App password deleted') 169 + }, 170 + }) 181 171 }, [store, name]) 182 172 183 173 const {contentLanguages} = store.preferences