mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 16:26:08 +08:00
11 lines
467 B
Plaintext
11 lines
467 B
Plaintext
|
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>
|