Add a layout fallback for EventTile

This commit is contained in:
Germain Souquet 2021-07-01 11:45:29 +01:00
parent 6f62233634
commit ede87129b2

View file

@ -267,7 +267,7 @@ interface IProps {
showReactions?: boolean; showReactions?: boolean;
// which layout to use // which layout to use
layout?: Layout; layout: Layout;
// whether or not to show flair at all // whether or not to show flair at all
enableFlair?: boolean; enableFlair?: boolean;
@ -321,6 +321,7 @@ export default class EventTile extends React.Component<IProps, IState> {
static defaultProps = { static defaultProps = {
// no-op function because onHeightChanged is optional yet some sub-components assume its existence // no-op function because onHeightChanged is optional yet some sub-components assume its existence
onHeightChanged: function() {}, onHeightChanged: function() {},
layout: Layout.Group,
}; };
static contextType = MatrixClientContext; static contextType = MatrixClientContext;