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

Commit

Permalink
refactor: componentize channels reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Apr 12, 2020
1 parent 63d3615 commit ee864c5
Show file tree
Hide file tree
Showing 49 changed files with 1,350 additions and 1,325 deletions.
12 changes: 6 additions & 6 deletions renderer/components/Channels/ChannelSort.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import messages from './messages'

const messageMapper = key => {
const filters = {
OPEN_DATE: messages.channel_sort_open_date,
REMOTE_BALANCE: messages.channel_sort_remote_balance,
LOCAL_BALANCE: messages.channel_sort_local_balance,
ACTIVITY: messages.channel_sort_activity,
NAME: messages.channel_sort_name,
CAPACITY: messages.channel_sort_capacity,
CHANNELS_SORT_OPEN_DATE: messages.channel_sort_open_date,
CHANNELS_SORT_REMOTE_BALANCE: messages.channel_sort_remote_balance,
CHANNELS_SORT_LOCAL_BALANCE: messages.channel_sort_local_balance,
CHANNELS_SORT_ACTIVITY: messages.channel_sort_activity,
CHANNELS_SORT_NAME: messages.channel_sort_name,
CHANNELS_SORT_CAPACITY: messages.channel_sort_capacity,
}

return filters[key]
Expand Down
1 change: 1 addition & 0 deletions renderer/reducers/activity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export default activityReducer
export activitySelectors from './selectors'
export * from './constants'
export * from './reducer'
export * from './utils'
Loading

0 comments on commit ee864c5

Please sign in to comment.