superdesk/superdesk-client-core

View on GitHub
scripts/apps/contacts/components/fields/OrgName.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';

/**
 * Org Name - to display organisation name of user contact
 */
export const OrgName: React.StatelessComponent<any> = ({item}) => (
    <div key="org-name" className="container">
        {item.first_name && item.organisation && <i className="icon-business" />}
        {
            item.first_name && item.organisation &&
                <span>{item.organisation}</span>
        }
    </div>
);

OrgName.propTypes = {
    item: PropTypes.object,
};