Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3743783
D9499.id32125.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
D9499.id32125.diff
View Options
diff --git a/lib/utils/entity-text.js b/lib/utils/entity-text.js
--- a/lib/utils/entity-text.js
+++ b/lib/utils/entity-text.js
@@ -365,7 +365,7 @@
type RenderFunctions = {
+renderText: ({ +text: string }) => React.Node,
+renderThread: ({ +id: string, +name: string }) => React.Node,
- +renderUser: ({ +userID: string, usernameText: string }) => React.Node,
+ +renderUser: ({ +userID: string, +usernameText: string }) => React.Node,
+renderColor: ({ +hex: string }) => React.Node,
};
function entityTextToReact(
diff --git a/native/chat/inner-robotext-message.react.js b/native/chat/inner-robotext-message.react.js
--- a/native/chat/inner-robotext-message.react.js
+++ b/native/chat/inner-robotext-message.react.js
@@ -120,8 +120,8 @@
}
type UserEntityProps = {
- userID: string,
- usernameText: string,
+ +userID: string,
+ +usernameText: string,
};
function UserEntity(props: UserEntityProps) {
const { userID, usernameText } = props;
diff --git a/web/chat/robotext-message.react.js b/web/chat/robotext-message.react.js
--- a/web/chat/robotext-message.react.js
+++ b/web/chat/robotext-message.react.js
@@ -140,8 +140,8 @@
);
type UserEntityProps = {
- userID: string,
- usernameText: string,
+ +userID: string,
+ +usernameText: string,
};
function UserEntity(props: UserEntityProps) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 2:01 PM (15 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2851358
Default Alt Text
D9499.id32125.diff (1 KB)
Attached To
Mode
D9499: [lib/native/web] make user entity prop types read only
Attached
Detach File
Event Timeline
Log In to Comment