gab-social/app/javascript/gabsocial/components/display_name_badge.js

17 lines
368 B
JavaScript
Raw Normal View History

2019-07-02 08:10:25 +01:00
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
export default class DisplayNameBadge extends React.PureComponent {
static propTypes = {
label: PropTypes.string,
};
render() {
const { label } = this.props;
return <span className="display-name__badge">{label}</span>;
}
}