Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3246657
D9828.id33080.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9828.id33080.diff
View Options
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 @@
</Text>
<Button
style={styles.removeButtonContainer}
- onPress={onPressRemoveKeyserver}
+ onPress={onPressDisconnectKeyserver}
>
<Text style={styles.removeButtonText}>Disconnect keyserver</Text>
</Button>
@@ -128,6 +139,7 @@
);
}, [
keyserverInfo.connection.status,
+ onPressDisconnectKeyserver,
onPressRemoveKeyserver,
styles.keyserverRemoveText,
styles.removeButtonContainer,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 1:16 AM (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495968
Default Alt Text
D9828.id33080.diff (1 KB)
Attached To
Mode
D9828: [native] introduce temp onPressDisconnectKeyserver callback
Attached
Detach File
Event Timeline
Log In to Comment