Page MenuHomePhabricator

D9786.id33840.diff
No OneTemporary

D9786.id33840.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
Thu, Dec 26, 7:51 AM (10 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703082
Default Alt Text
D9786.id33840.diff (833 B)

Event Timeline