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