[MM-13954] Fix prop type for post reactions (#2578)
* Fix prop type for post reactions * Update react list test
This commit is contained in:
parent
7bb6821ea6
commit
42a4806d32
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ export default class ReactionList extends PureComponent {
|
|||
getMissingProfilesByIds: PropTypes.func.isRequired,
|
||||
}).isRequired,
|
||||
navigator: PropTypes.object,
|
||||
reactions: PropTypes.array.isRequired,
|
||||
reactions: PropTypes.object.isRequired,
|
||||
theme: PropTypes.object.isRequired,
|
||||
teammateNameDisplay: PropTypes.string,
|
||||
userProfiles: PropTypes.array,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ describe('ReactionList', () => {
|
|||
},
|
||||
allUserIds: ['user_id_1', 'user_id_2'],
|
||||
navigator: {setOnNavigatorEvent: jest.fn()},
|
||||
reactions: [{emoji_name: 'smile', user_id: 'user_id_1'}, {emoji_name: '+1', user_id: 'user_id_2'}],
|
||||
reactions: {'user_id_1-smile': {emoji_name: 'smile', user_id: 'user_id_1'}, 'user_id_2-+1': {emoji_name: '+1', user_id: 'user_id_2'}},
|
||||
theme: Preferences.THEMES.default,
|
||||
teammateNameDisplay: 'username',
|
||||
userProfiles: [{id: 'user_id_1', username: 'username_1'}, {id: 'user_id_2', username: 'username_2'}],
|
||||
|
|
|
|||
Loading…
Reference in a new issue