Page MenuHomePhabricator

D9786.diff
No OneTemporary

D9786.diff

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

Mime Type
text/plain
Expires
Wed, Dec 25, 8:22 PM (12 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703082
Default Alt Text
D9786.diff (833 B)

Event Timeline