UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

16 lines 606 B
import profiles, { avatarImages } from './profile-data'; var mappedProfileToReportingLines = profiles.map(function (profile, index) { return { accountIdentifier: '123456:12345-67890-' + index, identifierType: 'ATLASSIAN_ID', pii: { name: profile.User.fullName, picture: index < avatarImages.length ? avatarImages[index] : avatarImages[0] } }; }); var halfCount = Math.ceil(mappedProfileToReportingLines.length / 2); export var reportingLinesData = { managers: mappedProfileToReportingLines.slice(0, halfCount), reports: mappedProfileToReportingLines.slice(-halfCount) };