mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 02:58:20 +08:00
5d95feaf9b
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
25 lines
591 B
CoffeeScript
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
|