feat: fix primary app color value and how it is displayed in the app

This commit is contained in:
kasia.oczkowska
2024-10-04 12:34:50 +01:00
parent 13c0a8ceaa
commit 9c1d21fd1b
72 changed files with 90 additions and 76 deletions

View File

@@ -7,11 +7,18 @@ const inlineImgStyle = {
function AppIcon(props) {
const { name, url, color, sx = {}, variant = 'square', ...restProps } = props;
const initialLetter = name?.[0];
return (
<Avatar
component="span"
variant={variant}
sx={{ bgcolor: color, display: 'flex', width: 50, height: 50, ...sx }}
sx={{
bgcolor: url ? null : color,
display: 'flex',
width: 50,
height: 50,
...sx,
}}
imgProps={{ style: inlineImgStyle }}
src={url}
alt={name}