Skip to content

Commit

Permalink
remove console logs and add constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous committed Jan 13, 2023
1 parent 0167179 commit 679476f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ const CONST = {
SMALLER: 'smaller',
SUBSCRIPT: 'subscript',
SMALL_SUBSCRIPT: 'small-subscript',
LARGE_BORDERED: 'large-bordered',
},
OPTION_MODE: {
COMPACT: 'compact',
Expand Down
1 change: 0 additions & 1 deletion src/components/RoomHeaderAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const RoomHeaderAvatars = (props) => {
}

const iconsToDisplay = props.icons.slice(0, CONST.REPORT.MAX_PREVIEW_AVATARS);
console.log('this is large bordered', StyleUtils.getAvatarStyle(CONST.AVATAR_SIZE.LARGE_BORDERED));

const iconStyle = [
styles.roomHeaderAvatar,
Expand Down
7 changes: 0 additions & 7 deletions src/styles/StyleUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ function getAvatarSize(size) {
[CONST.AVATAR_SIZE.LARGE_BORDERED]: variables.avatarSizeLargeBordered,
};

if (!size) {
console.log('nothing was sent to size either', size, AVATAR_SIZES[size]);
}
return AVATAR_SIZES[size];
}

Expand All @@ -38,10 +35,6 @@ function getAvatarSize(size) {
* @returns {Object}
*/
function getAvatarStyle(size) {
if (!size) {
console.log('yourenot sending anything to style');
}

const avatarSize = getAvatarSize(size);
return {
height: avatarSize,
Expand Down

0 comments on commit 679476f

Please sign in to comment.