diff --git a/native/profile/keyserver-selection-bottom-sheet.react.js b/native/profile/keyserver-selection-bottom-sheet.react.js --- a/native/profile/keyserver-selection-bottom-sheet.react.js +++ b/native/profile/keyserver-selection-bottom-sheet.react.js @@ -17,6 +17,7 @@ import type { RootNavigationProp } from '../navigation/root-navigator.react.js'; import type { NavigationRoute } from '../navigation/route-names.js'; import { useColors, useStyles } from '../themes/colors.js'; +import Alert from '../utils/alert.js'; export type KeyserverSelectionBottomSheetParams = { +keyserverAdminUserInfo: GlobalAccountUserInfo, @@ -80,6 +81,16 @@ [colors.panelForegroundLabel], ); + const onPressDisconnectKeyserver = React.useCallback(() => { + // TODO: update this function when we have a way to + // disconnect from a keyserver + Alert.alert( + 'Disconnecting from a keyserver is still not ready.', + 'Please come back later.', + [{ text: 'OK' }], + ); + }, []); + const onPressRemoveKeyserver = React.useCallback(() => { // TODO }, []); @@ -120,7 +131,7 @@ @@ -128,6 +139,7 @@ ); }, [ keyserverInfo.connection.status, + onPressDisconnectKeyserver, onPressRemoveKeyserver, styles.keyserverRemoveText, styles.removeButtonContainer,