Skip to content

Commit

Permalink
fix: update no border radius style
Browse files Browse the repository at this point in the history
  • Loading branch information
developerdavi committed Jul 3, 2023
1 parent e835c83 commit 0f26855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function Avatar(props) {
const imageStyle =
props.imageStyles && props.imageStyles.length
? [StyleUtils.getAvatarStyle(props.size), ...props.imageStyles, StyleUtils.getAvatarBorderRadius(props.size, props.type)]
: [StyleUtils.getAvatarStyle(props.size), styles.br0];
: [StyleUtils.getAvatarStyle(props.size), styles.noBorderRadius];

const iconStyle = props.imageStyles && props.imageStyles.length ? [StyleUtils.getAvatarStyle(props.size), styles.bgTransparent, ...props.imageStyles] : undefined;

Expand Down
8 changes: 4 additions & 4 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ const styles = {
marginVertical: 1,
},

noBorderRadius: {
borderRadius: 0,
},

noRightBorderRadius: {
borderTopRightRadius: 0,
borderBottomRightRadius: 0,
Expand Down Expand Up @@ -742,10 +746,6 @@ const styles = {
borderColor: themeColors.border,
},

br0: {
borderRadius: 0,
},

borderColorFocus: {
borderColor: themeColors.borderFocus,
},
Expand Down

0 comments on commit 0f26855

Please sign in to comment.