Mailspring/internal_packages/account-sidebar/lib/account-sidebar-item.cjsx
dillon b39789ad10 fix(account-sidebar): make folder and label names wrap elegantly. fixes T3402.
Summary:
WIP: changing the rest of items to make them look correct

fix last draft item in sidebar

add more padding

Test Plan: tested manually. all tests remain green.

Reviewers: evan, bengotow

Reviewed By: bengotow

Maniphest Tasks: T3402

Differential Revision: https://phab.nylas.com/D1943
2015-08-31 10:47:25 -07:00

18 lines
503 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}>
<div className="name">{@props.item.displayName}</div>
</div>
_onClick: (event) =>
event.preventDefault()
Actions.selectView(@props.item.view)
module.exports = AccountSidebarItem