mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
37 lines
886 B
Text
37 lines
886 B
Text
|
React = require 'react'
|
||
|
{RetinaImg} = require 'nylas-component-kit'
|
||
|
|
||
|
class Page extends React.Component
|
||
|
@displayName: "Page"
|
||
|
|
||
|
constructor: (@props) ->
|
||
|
|
||
|
_renderClose: (action="close") ->
|
||
|
if action is "close"
|
||
|
onClick = -> atom.close()
|
||
|
else if action is "quit"
|
||
|
onClick = ->
|
||
|
require('ipc').send('command', 'application:quit')
|
||
|
else onClick = ->
|
||
|
|
||
|
<div className="quit" onClick={onClick}>
|
||
|
<RetinaImg name="onboarding-close.png" mode={RetinaImg.Mode.ContentPreserve}/>
|
||
|
</div>
|
||
|
|
||
|
_renderSpinner: ->
|
||
|
styles =
|
||
|
position: "absolute"
|
||
|
zIndex: 10
|
||
|
top: "50%"
|
||
|
left: "50%"
|
||
|
width: "256px"
|
||
|
marginLeft: "-128px"
|
||
|
marginTop: "-128px"
|
||
|
|
||
|
<RetinaImg ref="spinner"
|
||
|
style={styles}
|
||
|
name="setup-spinner.gif"
|
||
|
mode={RetinaImg.Mode.ContentPreserve}/>
|
||
|
|
||
|
module.exports = Page
|