Page MenuHomePhabricator

D9828.id33245.diff
No OneTemporary

D9828.id33245.diff

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 @@
</Text>
<Button
style={styles.removeButtonContainer}
- onPress={onPressRemoveKeyserver}
+ onPress={onPressDisconnectKeyserver}
>
<Text style={styles.removeButtonText}>Disconnect keyserver</Text>
</Button>
@@ -129,6 +140,7 @@
);
}, [
keyserverInfo.connection.status,
+ onPressDisconnectKeyserver,
onPressRemoveKeyserver,
styles.keyserverRemoveText,
styles.removeButtonContainer,

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 1:31 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495999
Default Alt Text
D9828.id33245.diff (1 KB)

Event Timeline