You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-21 07:42:09 +03:00
Purify the components
This commit is contained in:
@ -29,7 +29,7 @@ import * as humanize from "humanize";
|
|||||||
const INITIAL_ROOMS_SHOWN = 3; // Number of rooms to show at first
|
const INITIAL_ROOMS_SHOWN = 3; // Number of rooms to show at first
|
||||||
const INCREMENT_ROOMS_SHOWN = 5; // Number of rooms to add when 'show more' is clicked
|
const INCREMENT_ROOMS_SHOWN = 5; // Number of rooms to add when 'show more' is clicked
|
||||||
|
|
||||||
class DMRoomTile extends React.Component {
|
class DMRoomTile extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
member: PropTypes.object.isRequired,
|
member: PropTypes.object.isRequired,
|
||||||
lastActiveTs: PropTypes.number,
|
lastActiveTs: PropTypes.number,
|
||||||
@ -70,7 +70,7 @@ class DMRoomTile extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class DMInviteDialog extends React.Component {
|
export default class DMInviteDialog extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
// Takes an array of user IDs/emails to invite.
|
// Takes an array of user IDs/emails to invite.
|
||||||
onFinished: PropTypes.func.isRequired,
|
onFinished: PropTypes.func.isRequired,
|
||||||
|
Reference in New Issue
Block a user