Mailspring/internal_packages/message-list/lib/pending-message-item.cjsx
Evan Morikawa 5d95feaf9b feat(message-list): better sending state
Summary:
We now have a `MessageItemContainer` class that handles the logic of
deciding what kind of message to show. We introduce a new `PendingMessage`
(which is just a sublcass of `MessageItem`) that has the spinner and
stuff.

Also tests

Test Plan: edgehill --test

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D1833
2015-08-03 17:19:07 -07:00

25 lines
591 B
CoffeeScript

React = require 'react'
{RetinaImg} = require 'nylas-component-kit'
MessageItem = require './message-item'
class PendingMessageItem extends MessageItem
@displayName = 'PendingMessageItem'
_renderMessageControls: -> null
_renderHeaderDetailToggle: -> null
_renderHeaderSideItems: ->
styles =
width: 24
float: "left"
marginTop: -2
marginRight: 10
<div style={styles}>
<RetinaImg ref="spinner"
name="sending-spinner.gif"
mode={RetinaImg.Mode.ContentPreserve}/>
</div>
module.exports = PendingMessageItem