diff --git a/internal_packages/account-sidebar/lib/account-sidebar-actions.coffee b/internal_packages/account-sidebar/lib/account-sidebar-actions.coffee
deleted file mode 100644
index e86583b76..000000000
--- a/internal_packages/account-sidebar/lib/account-sidebar-actions.coffee
+++ /dev/null
@@ -1,12 +0,0 @@
-Reflux = require 'reflux'
-
-Actions = [
- 'selectItem'
- 'setSectionCollapse'
-]
-
-for key in Actions
- Actions[key] = Reflux.createAction(name)
- Actions[key].sync = true
-
-module.exports = Actions
diff --git a/internal_packages/account-sidebar/lib/account-sidebar-items.coffee b/internal_packages/account-sidebar/lib/account-sidebar-items.coffee
index 4d0ec4eb8..88dbf8cd2 100644
--- a/internal_packages/account-sidebar/lib/account-sidebar-items.coffee
+++ b/internal_packages/account-sidebar/lib/account-sidebar-items.coffee
@@ -16,7 +16,8 @@ class MailboxPerspectiveSidebarItem
@name = @shortenedName ? @mailboxPerspective.name
@iconName = @mailboxPerspective.iconName
@dataTransferType = 'nylas-thread-ids'
- @useAltCountStyle = true if @mailboxPerspective.isInbox()
+<<<<<<< HEAD
+ @counterStyle = OutlineViewItem.CounterStyles.Alt if @mailboxPerspective.isInbox()
# Sidenote: I think treating the sidebar items as dumb bundles of data is a
# good idea. `count` /shouldn't/ be a function since if it's value changes,
@@ -29,9 +30,9 @@ class MailboxPerspectiveSidebarItem
# { count: X, isSelected: false, isDeleted: true}...
#
@count = @_count()
- @isSelected = @_isSelected()
- @isDeleted = @_isDeleted()
- @isCollapsed = @_isCollapsed()
+ @selected = @_isSelected()
+ @deleted = @_isDeleted()
+ @collapsed = @_isCollapsed()
@
@@ -55,8 +56,8 @@ class MailboxPerspectiveSidebarItem
onToggleCollapsed: =>
return unless @children.length > 0
key = "core.accountSidebarCollapsed.#{@id}"
- @isCollapsed = not @_isCollapsed()
- NylasEnv.config.set(key, @isCollapsed)
+ @collapsed = not @_isCollapsed()
+ NylasEnv.config.set(key, @collapsed)
onDelete: =>
return if @category?.isDeleted is true
@@ -76,20 +77,16 @@ class MailboxPerspectiveSidebarItem
onSelect: =>
Actions.selectRootSheet(WorkspaceStore.Sheet.Threads)
Actions.focusMailboxPerspective(@mailboxPerspective)
- AccountSidebarActions.selectItem()
class SheetSidebarItem
constructor: (@name, @iconName, @sheet) ->
@id = @sheet?.id ? @name
-
- isSelected: =>
- WorkspaceStore.rootSheet().id is @id
+ @selected = WorkspaceStore.rootSheet().id is @id
onSelect: =>
Actions.selectRootSheet(@sheet)
- AccountSidebarActions.selectItem()
class DraftListSidebarItem extends SheetSidebarItem
diff --git a/internal_packages/account-sidebar/lib/account-sidebar-sections.coffee b/internal_packages/account-sidebar/lib/account-sidebar-sections.coffee
index cc368e4cf..fe1701ccb 100644
--- a/internal_packages/account-sidebar/lib/account-sidebar-sections.coffee
+++ b/internal_packages/account-sidebar/lib/account-sidebar-sections.coffee
@@ -9,7 +9,7 @@ class CategorySidebarSection extends AccountSidebarSection
constructor: ({@label, @iconName, @account, @items} = {}) ->
- onCreateItem: (displayName) ->
+ onCreateItem: (displayName) =>
return unless @account
CategoryClass = @account.categoryClass()
category = new CategoryClass
diff --git a/internal_packages/account-sidebar/lib/components/account-sidebar.cjsx b/internal_packages/account-sidebar/lib/components/account-sidebar.cjsx
index 5049593f8..fe04cc765 100644
--- a/internal_packages/account-sidebar/lib/components/account-sidebar.cjsx
+++ b/internal_packages/account-sidebar/lib/components/account-sidebar.cjsx
@@ -1,8 +1,9 @@
-React = require 'react'
_ = require 'underscore'
+React = require 'react'
{OutlineView, ScrollRegion} = require 'nylas-component-kit'
AccountSidebarStore = require '../account-sidebar-store'
+
class AccountSidebar extends React.Component
@displayName: 'AccountSidebar'
@@ -35,7 +36,7 @@ class AccountSidebar extends React.Component
render: =>
-