UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

16 lines (13 loc) 610 B
import React, { Component } from 'react' import DomainUser from './DomainUser.jsx' import iso from '../../../iso'; const collectionHelper = iso.collection; export default class DomainUsers extends Component { render() { const { potentialUsers, inviteClick } = this.props; let domainUsersContent = collectionHelper.take( potentialUsers, 5 ).map( function( user, index ) { return <DomainUser inviteClick={inviteClick} key={index} domainUser={user}></DomainUser>; } ); return <ul className="cluedIn_bordered cluedIn_domainUsers">{domainUsersContent}</ul> } }