Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32563906
D9380.1767361626.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
886 B
Referenced Files
None
Subscribers
None
D9380.1767361626.diff
View Options
diff --git a/native/profile/user-relationship-tooltip-modal.react.js b/native/profile/user-relationship-tooltip-modal.react.js
--- a/native/profile/user-relationship-tooltip-modal.react.js
+++ b/native/profile/user-relationship-tooltip-modal.react.js
@@ -127,18 +127,16 @@
...
};
-class UserRelationshipTooltipButton extends React.PureComponent<Props> {
- render() {
- return (
- <TouchableOpacity onPress={this.onPress}>
- <PencilIcon />
- </TouchableOpacity>
- );
- }
+function UserRelationshipTooltipButton(props: Props): React.Node {
+ const { navigation } = props;
+
+ const { goBackOnce } = navigation;
- onPress = () => {
- this.props.navigation.goBackOnce();
- };
+ return (
+ <TouchableOpacity onPress={goBackOnce}>
+ <PencilIcon />
+ </TouchableOpacity>
+ );
}
const UserRelationshipTooltipModal: React.ComponentType<
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 2, 1:47 PM (37 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5879779
Default Alt Text
D9380.1767361626.diff (886 B)
Attached To
Mode
D9380: [native] make UserRelationshipTooltipButton a functional component
Attached
Detach File
Event Timeline
Log In to Comment