Gab Social. All are welcome.
This commit is contained in:
17
app/javascript/gabsocial/components/display_name_badge.js
Normal file
17
app/javascript/gabsocial/components/display_name_badge.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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>;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user