mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
11 lines
467 B
Text
11 lines
467 B
Text
|
React = require 'react'
|
||
|
_ = require 'underscore-plus'
|
||
|
|
||
|
module.exports = ComposerParticipant = React.createClass
|
||
|
render: ->
|
||
|
<span className={!_.isEmpty(@props.participant.name) and "hasName" or ""}>
|
||
|
<span className="name">{@props.participant.name}</span>
|
||
|
<span className="email">{@props.participant.email}</span>
|
||
|
<button className="remove" onClick={=> @props.onRemove(@props.participant)} ><i className="fa fa-remove"></i></button>
|
||
|
</span>
|