Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32193667
D9499.1765099058.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9499.1765099058.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
Sun, Dec 7, 9:17 AM (16 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5843243
Default Alt Text
D9499.1765099058.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