Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
We should be able to move to favorites tab
Browse files Browse the repository at this point in the history
by shortcut key
  • Loading branch information
k0kubun committed Oct 6, 2016
1 parent 29d4799 commit ac16bdd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/utils/rich-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,21 @@ export default class RichState {

nextTab() {
return {
home: 'mentions',
mentions: 'lists',
lists: 'search',
search: 'search',
home: 'mentions',
mentions: 'search',
search: 'lists',
lists: 'favorites',
favorites: 'favorites',
}[this.activeTab()];
}

prevTab() {
return {
home: 'home',
mentions: 'home',
lists: 'mentions',
search: 'lists',
home: 'home',
mentions: 'home',
search: 'mentions',
lists: 'search',
favorites: 'lists',
}[this.activeTab()];
}

Expand Down

0 comments on commit ac16bdd

Please sign in to comment.