Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3510021
D6472.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
D6472.diff
View Options
diff --git a/web/modals/threads/settings/thread-settings-relationship-tab.react.js b/web/modals/threads/settings/thread-settings-relationship-tab.react.js
--- a/web/modals/threads/settings/thread-settings-relationship-tab.react.js
+++ b/web/modals/threads/settings/thread-settings-relationship-tab.react.js
@@ -2,6 +2,7 @@
import * as React from 'react';
+import { useENSNames } from 'lib/hooks/ens-cache';
import { type SetState } from 'lib/types/hook-types';
import { type RelationshipButton } from 'lib/types/relationship-types';
import type { UserInfo } from 'lib/types/user-types';
@@ -17,17 +18,18 @@
function ThreadSettingsRelationshipTab(props: Props): React.Node {
const { relationshipButtons, otherUserInfo, setErrorMessage } = props;
+ const [otherUserInfoWithENSName] = useENSNames([otherUserInfo]);
const buttons = React.useMemo(
() =>
relationshipButtons.map(action => (
<ThreadSettingsRelationshipButton
key={action}
relationshipButton={action}
- otherUserInfo={otherUserInfo}
+ otherUserInfo={otherUserInfoWithENSName}
setErrorMessage={setErrorMessage}
/>
)),
- [otherUserInfo, relationshipButtons, setErrorMessage],
+ [otherUserInfoWithENSName, relationshipButtons, setErrorMessage],
);
return <div className={css.container}>{buttons}</div>;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 10:35 AM (13 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690778
Default Alt Text
D6472.diff (1 KB)
Attached To
Mode
D6472: [web] Show ENS names in ThreadSettingsRelationshipTab
Attached
Detach File
Event Timeline
Log In to Comment