mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Prefer import React, set prevEvent to last MemberhsipChange
This commit is contained in:
parent
e2936376b6
commit
dcbb31279f
@ -328,7 +328,8 @@ module.exports = React.createClass({
|
||||
{eventTiles}
|
||||
</MemberEventListSummary>
|
||||
);
|
||||
prevEvent = mxEv;
|
||||
// Set previous event to last MembershipChange
|
||||
prevEvent = this.props.events[i - 1];
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
const React = require('react');
|
||||
import React from 'react';
|
||||
const MemberAvatar = require('../avatars/MemberAvatar.js');
|
||||
const dispatcher = require("../../../dispatcher");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user