-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17996 from Expensify/tgolen-migrate-reactions
Support new emojiReaction data format
- Loading branch information
Showing
13 changed files
with
325 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
/** All the emoji reactions for the report action. An object that looks like this: | ||
"emojiReactions": { | ||
"+1": { // The emoji added to the action | ||
"createdAt": "2021-01-01 00:00:00", | ||
"users": { | ||
2352342: { // The accountID of the user who added this emoji | ||
"skinTones": { | ||
"1": "2021-01-01 00:00:00", | ||
"2": "2021-01-01 00:00:00", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
*/ | ||
export default PropTypes.objectOf( | ||
PropTypes.shape({ | ||
/** The time the emoji was added */ | ||
createdAt: PropTypes.string, | ||
|
||
/** All the users who have added this emoji */ | ||
users: PropTypes.objectOf( | ||
PropTypes.shape({ | ||
/** The skin tone which was used and also the timestamp of when it was added */ | ||
skinTones: PropTypes.objectOf(PropTypes.string), | ||
}), | ||
), | ||
}), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.