PropTypes should be static

This commit is contained in:
David Baker 2019-11-22 13:01:56 +00:00
parent 6d4abeef45
commit 3f5a8faf37
2 changed files with 2 additions and 1 deletions

View file

@ -221,6 +221,7 @@ hr.mx_RoomView_myReadMarker {
position: relative;
top: -1px;
z-index: 1;
transition: width 1s easeInSine;
}
.mx_RoomView_callStatusBar .mx_UploadBar_uploadProgressInner {

View file

@ -38,7 +38,7 @@ const isMembershipChange = (e) => e.getType() === 'm.room.member' || e.getType()
/* (almost) stateless UI component which builds the event tiles in the room timeline.
*/
export default class MessagePanel extends React.Component {
propTypes = {
static propTypes = {
// true to give the component a 'display: none' style.
hidden: PropTypes.bool,