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 @@ -57,7 +57,8 @@ +fixedWidth?: boolean, +borderRadius: number, }; -type BaseConfig = React.Config; +type DefaultProps = { +borderRadius: number }; +type BaseConfig = React.Config; type Props = { ...BaseProps, // withInputState @@ -69,9 +70,7 @@ +onClickUser: () => mixed, }; class ComposedMessage extends React.PureComponent { - static defaultProps: { +borderRadius: number } = { - borderRadius: 8, - }; + static defaultProps: DefaultProps = { borderRadius: 8 }; render(): React.Node { assertComposableMessageType(this.props.item.messageInfo.type);