Page MenuHomePhabricator

D6602.diff
No OneTemporary

D6602.diff

diff --git a/native/components/thread-pill.react.js b/native/components/thread-pill.react.js
--- a/native/components/thread-pill.react.js
+++ b/native/components/thread-pill.react.js
@@ -3,6 +3,7 @@
import * as React from 'react';
import type { ThreadInfo } from 'lib/types/thread-types';
+import { useResolvedThreadInfo } from 'lib/utils/entity-helpers';
import Pill from './pill.react';
@@ -13,10 +14,11 @@
};
function ThreadPill(props: Props): React.Node {
const { threadInfo, roundCorners, fontSize } = props;
+ const { uiName } = useResolvedThreadInfo(threadInfo);
return (
<Pill
backgroundColor={`#${threadInfo.color}`}
- label={threadInfo.uiName}
+ label={uiName}
roundCorners={roundCorners}
fontSize={fontSize}
/>

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 9:33 PM (17 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683201
Default Alt Text
D6602.diff (782 B)

Event Timeline