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, @@ -81,6 +82,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 }, []); @@ -121,7 +132,7 @@ @@ -129,6 +140,7 @@ ); }, [ keyserverInfo.connection.status, + onPressDisconnectKeyserver, onPressRemoveKeyserver, styles.keyserverRemoveText, styles.removeButtonContainer,