0
0
Fork 0

Change onboarding prompt to follow suggestions carousel in web UI (#28878)

This commit is contained in:
Eugen Rochko 2024-02-01 14:37:04 +01:00 committed by GitHub
parent 7316a08380
commit 9cdc60ecc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 507 additions and 138 deletions

View file

@ -28,12 +28,12 @@ export default function suggestionsReducer(state = initialState, action) {
case SUGGESTIONS_FETCH_FAIL:
return state.set('isLoading', false);
case SUGGESTIONS_DISMISS:
return state.update('items', list => list.filterNot(x => x.account === action.id));
return state.update('items', list => list.filterNot(x => x.get('account') === action.id));
case blockAccountSuccess.type:
case muteAccountSuccess.type:
return state.update('items', list => list.filterNot(x => x.account === action.payload.relationship.id));
return state.update('items', list => list.filterNot(x => x.get('account') === action.payload.relationship.id));
case blockDomainSuccess.type:
return state.update('items', list => list.filterNot(x => action.payload.accounts.includes(x.account)));
return state.update('items', list => list.filterNot(x => action.payload.accounts.includes(x.get('account'))));
default:
return state;
}