Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3531345
D9786.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
833 B
Referenced Files
None
Subscribers
None
D9786.id.diff
View Options
diff --git a/web/chat/composed-message.react.js b/web/chat/composed-message.react.js
--- a/web/chat/composed-message.react.js
+++ b/web/chat/composed-message.react.js
@@ -58,7 +58,8 @@
+fixedWidth?: boolean,
+borderRadius: number,
};
-type BaseConfig = React.Config<BaseProps, typeof ComposedMessage.defaultProps>;
+type DefaultProps = { +borderRadius: number };
+type BaseConfig = React.Config<BaseProps, DefaultProps>;
type Props = {
...BaseProps,
// withInputState
@@ -70,9 +71,7 @@
+onClickUser: () => mixed,
};
class ComposedMessage extends React.PureComponent<Props> {
- static defaultProps: { +borderRadius: number } = {
- borderRadius: 8,
- };
+ static defaultProps: DefaultProps = { borderRadius: 8 };
render(): React.Node {
assertComposableMessageType(this.props.item.messageInfo.type);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 7:09 AM (9 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703082
Default Alt Text
D9786.id.diff (833 B)
Attached To
Mode
D9786: [Flow202][web][skip-ci] [20/x] Fix Flow issues in ComposedMessage
Attached
Detach File
Event Timeline
Log In to Comment