mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
91edef9f7a
Conflicts: internal_packages/inbox-activity-bar/lib/activity-bar-long-poll-item.cjsx
18 lines
499 B
CoffeeScript
18 lines
499 B
CoffeeScript
React = require 'react'
|
|
{Actions} = require("nylas-exports")
|
|
|
|
class AccountSidebarItem extends React.Component
|
|
@displayName: "AccountSidebarItem"
|
|
|
|
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)
|
|
|
|
|
|
module.exports = AccountSidebarItem
|