mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 22:42:16 -05:00
13 lines
310 B
JavaScript
13 lines
310 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const ClientDisplayName = ({ client, ...rest }) => (
|
|
<span {...rest}>{client.display_name ? client.display_name : client.id}</span>
|
|
);
|
|
|
|
ClientDisplayName.propTypes = {
|
|
client: PropTypes.object.isRequired
|
|
};
|
|
|
|
export default ClientDisplayName;
|