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

Commit

Permalink
[C-1282] Remove followUser social action in profile reducer (#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Oct 11, 2022
1 parent 26de098 commit 7a83f29
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/common/src/store/pages/profile/reducer.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// @ts-nocheck
// TODO(nkang) - convert to TS
import { update } from 'lodash'

import { asLineup } from 'store/lineup/reducer'
import feedReducer from 'store/pages/profile/lineups/feed/reducer'
import tracksReducer from 'store/pages/profile/lineups/tracks/reducer'
import { FollowType, CollectionSortMode } from 'store/pages/profile/types'
import { FOLLOW_USER, FOLLOW_USER_FAILED } from 'store/social/users/actions'

import { Status } from '../../../models'

Expand Down Expand Up @@ -203,28 +201,6 @@ const actionsMap = {
[DISMISS_PROFILE_METER](state, action) {
return updateProfile(state, action, { profileMeterDismissed: true })
},
[FOLLOW_USER](state, action) {
const { currentUser, entries } = state
const { handle, userId } = action
const profileHandle = handle?.toLowerCase() ?? currentUser
const newEntry = entries[profileHandle]
const profileFollowees = newEntry[FollowType.FOLLOWEES]

return {
...state,
entries: {
...entries,
[profileHandle]: {
...newEntry,
[FollowType.FOLLOWEES]: {
...profileFollowees,
userIds: profileFollowees.userIds.concat([userId])
}
}
}
}
},
[FOLLOW_USER_FAILED](state, action) {},
[SET_NOTIFICATION_SUBSCRIPTION](state, action) {
const { isSubscribed } = action

Expand Down

0 comments on commit 7a83f29

Please sign in to comment.