mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
14 lines
430 B
CoffeeScript
14 lines
430 B
CoffeeScript
React = require 'react'
|
|
{Actions} = require("inbox-exports")
|
|
|
|
module.exports =
|
|
AccountSidebarItem = React.createClass
|
|
render: ->
|
|
className = "item " + if @props.select then " selected" else ""
|
|
<div className={className} onClick={@_onClick} id={@props.item.id}>
|
|
<span className="name"> {@props.item.name}</span>
|
|
</div>
|
|
|
|
_onClick: (event) ->
|
|
event.preventDefault()
|
|
Actions.selectView(@props.item.view)
|