Page MenuHomePhabricator

D9380.diff
No OneTemporary

D9380.diff

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

Mime Type
text/plain
Expires
Fri, Nov 8, 1:54 PM (6 m, 20 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2442746
Default Alt Text
D9380.diff (886 B)

Event Timeline