Page MenuHomePhabricator

D6472.diff
No OneTemporary

D6472.diff

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

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)

Event Timeline