mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Add a layout fallback for EventTile
This commit is contained in:
parent
6f62233634
commit
ede87129b2
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue