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; +type DefaultProps = { +borderRadius: number }; +type BaseConfig = React.Config; type Props = { ...BaseProps, // withInputState @@ -70,9 +71,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);