From db1bd7635eb56a9bf8c5ac9a30f582ab1fc85d2d Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Thu, 3 Aug 2023 12:32:10 +0800 Subject: [PATCH] remove redundant border radius --- src/components/Avatar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Avatar.js b/src/components/Avatar.js index 8dcf7f08c1d1..b96e60dd56d1 100644 --- a/src/components/Avatar.js +++ b/src/components/Avatar.js @@ -75,8 +75,8 @@ 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), StyleUtils.getAvatarBorderStyle(props.size, props.type)]; + ? [StyleUtils.getAvatarStyle(props.size), ...props.imageStyles, styles.noBorderRadius] + : [StyleUtils.getAvatarStyle(props.size), styles.noBorderRadius]; const iconStyle = props.imageStyles && props.imageStyles.length ? [StyleUtils.getAvatarStyle(props.size), styles.bgTransparent, ...props.imageStyles] : undefined;