Skip to content

Commit

Permalink
style: Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Feb 18, 2022
1 parent 7b0dd65 commit 66a05aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/EmojiPicker/EmojiPickerButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const EmojiPickerButton = (props) => {
);
};

EmojiPickerButton.displayName = 'EmojiPickerButton';
EmojiPickerButton.propTypes = propTypes;
EmojiPickerButton.defaultProps = defaultProps;
EmojiPickerButton.displayName = 'EmojiPickerButton';
export default withLocalize(EmojiPickerButton);
4 changes: 0 additions & 4 deletions src/components/EmojiPicker/EmojiPickerMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ class EmojiPickerMenu extends Component {
}

/**
* Callback for the emoji picker to add whatever emoji is chosen into the main input
*
* @param {String} emoji
* @param {Object} emojiObject
*/
Expand Down Expand Up @@ -380,8 +378,6 @@ class EmojiPickerMenu extends Component {
}

/**
* Update user preferred skin tone
*
* @param {Number} skinTone
*/
updatePreferredSkinTone(skinTone) {
Expand Down
12 changes: 5 additions & 7 deletions src/components/EmojiPicker/EmojiPickerMenu/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ const propTypes = {
...withLocalizePropTypes,
};

const defaultProps = {
preferredSkinTone: undefined,
};

class EmojiPickerMenu extends Component {
constructor(props) {
super(props);
Expand All @@ -60,8 +64,6 @@ class EmojiPickerMenu extends Component {
}

/**
* Callback for the emoji picker to add whatever emoji is chosen into the main input
*
* @param {String} emoji
* @param {Object} emojiObject
*/
Expand All @@ -80,8 +82,6 @@ class EmojiPickerMenu extends Component {
}

/**
* Update user preferred skin tone
*
* @param {Number} skinTone
*/
updatePreferredSkinTone(skinTone) {
Expand Down Expand Up @@ -152,9 +152,7 @@ class EmojiPickerMenu extends Component {
}

EmojiPickerMenu.propTypes = propTypes;
EmojiPickerMenu.defaultProps = {
preferredSkinTone: undefined,
};
EmojiPickerMenu.defaultProps = defaultProps;

export default compose(
withWindowDimensions,
Expand Down
3 changes: 2 additions & 1 deletion src/components/PopoverWithMeasuredContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const propTypes = {
measureContent: PropTypes.func.isRequired,

/** Static dimensions for the popover.
* Note: When passed, it will skip dimensions measuring of the popover, and provided dimensions will be used to calculate the anchor position. */
* Note: When passed, it will skip dimensions measuring of the popover, and provided dimensions will be used to calculate the anchor position.
*/
popoverDimensions: PropTypes.shape({
height: PropTypes.number,
width: PropTypes.number,
Expand Down

0 comments on commit 66a05aa

Please sign in to comment.