feat: tweak add new app connection dialog
This commit is contained in:
@@ -13,14 +13,13 @@ const inlineImgStyle: React.CSSProperties = {
|
||||
};
|
||||
|
||||
export default function AppIcon(props: AppIconProps & AvatarProps) {
|
||||
const { name, url, sx = {}, ...restProps } = props;
|
||||
const color = url ? 'white' : props.color
|
||||
const { name, url, color, sx = {}, ...restProps } = props;
|
||||
|
||||
return (
|
||||
<Avatar
|
||||
component="span"
|
||||
variant="square"
|
||||
sx={{ bgcolor: `#${color}`, display: 'inline-flex', width: 50, height: 50, ...sx }}
|
||||
sx={{ bgcolor: color, display: 'inline-flex', width: 50, height: 50, ...sx }}
|
||||
imgProps={{ style: inlineImgStyle }}
|
||||
src={url}
|
||||
alt={name}
|
||||
|
Reference in New Issue
Block a user