Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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