feat: Serve static assets of apps

This commit is contained in:
Faruk AYDIN
2021-10-19 16:29:37 +02:00
committed by Ali BARIN
parent 5a2de1de9e
commit 672cc4c60c
17 changed files with 118 additions and 23 deletions

View File

@@ -7,8 +7,9 @@ type AppIconProps = {
};
export default function AppIcon(props: AppIconProps) {
const { color, name, url } = props;
const { name, url } = props;
const color = url ? 'white' : props.color
return (
<Avatar component="span" variant="square" sx={{ bgcolor: `#${color}` }} src={url} alt={name} />
);