mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
c059b51fe3
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
18 lines
503 B
CoffeeScript
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
|