Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32188434
D9388.1765089101.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D9388.1765089101.diff
View Options
diff --git a/native/chat/settings/thread-settings-member.react.js b/native/chat/settings/thread-settings-member.react.js
--- a/native/chat/settings/thread-settings-member.react.js
+++ b/native/chat/settings/thread-settings-member.react.js
@@ -40,6 +40,7 @@
import { useSelector } from '../../redux/redux-utils.js';
import { type Colors, useColors, useStyles } from '../../themes/colors.js';
import type { VerticalBounds } from '../../types/layout-types.js';
+import { useNavigateToUserProfileBottomSheet } from '../../user-profile/user-profile-utils.js';
type BaseProps = {
+memberInfo: RelativeMemberInfo,
@@ -62,6 +63,7 @@
+keyboardState: ?KeyboardState,
// withOverlayContext
+overlayContext: ?OverlayContextType,
+ +navigateToUserProfileBottomSheet: (userID: string) => mixed,
};
class ThreadSettingsMember extends React.PureComponent<Props> {
editButton: ?React.ElementRef<typeof View>;
@@ -133,7 +135,10 @@
? this.props.styles.lastContainer
: null;
return (
- <View style={[this.props.styles.container, firstItem, lastItem]}>
+ <TouchableOpacity
+ onPress={this.onPressUser}
+ style={[this.props.styles.container, firstItem, lastItem]}
+ >
<View style={this.props.styles.row}>
<View style={this.props.styles.userInfoContainer}>
<UserAvatar size="S" userID={this.props.memberInfo.id} />
@@ -142,10 +147,14 @@
{editButton}
</View>
{roleInfo}
- </View>
+ </TouchableOpacity>
);
}
+ onPressUser = () => {
+ this.props.navigateToUserProfileBottomSheet(this.props.memberInfo.id);
+ };
+
editButtonRef = (editButton: ?React.ElementRef<typeof View>) => {
this.editButton = editButton;
};
@@ -268,6 +277,9 @@
const keyboardState = React.useContext(KeyboardContext);
const overlayContext = React.useContext(OverlayContext);
+ const navigateToUserProfileBottomSheet =
+ useNavigateToUserProfileBottomSheet();
+
return (
<ThreadSettingsMember
{...props}
@@ -278,6 +290,7 @@
styles={styles}
keyboardState={keyboardState}
overlayContext={overlayContext}
+ navigateToUserProfileBottomSheet={navigateToUserProfileBottomSheet}
/>
);
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 6:31 AM (6 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5841188
Default Alt Text
D9388.1765089101.diff (2 KB)
Attached To
Mode
D9388: [native] make user profile accessible from ThreadSettingsMember
Attached
Detach File
Event Timeline
Log In to Comment