Prefer import React, set prevEvent to last MemberhsipChange

This commit is contained in:
Luke Barnard 2016-11-10 14:08:11 +00:00
parent e2936376b6
commit dcbb31279f
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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");