updates on the ui changes

This commit is contained in:
2026-07-08 18:42:56 +05:30
parent e8949e0b1a
commit 298fc603a0
44 changed files with 7062 additions and 4670 deletions

View File

@@ -1,12 +1,9 @@
import { Avatar } from '@mui/material';
import { stringToColor, initials } from '@/utils/format';
import { Avatar } from '@astryxdesign/core/Avatar';
// ==============================|| INITIALS AVATAR ||============================== //
export default function UserAvatar({ name = '', size = 32, sx }) {
export default function UserAvatar({ name = '', size = 32 }) {
return (
<Avatar sx={{ width: size, height: size, bgcolor: stringToColor(name), fontSize: size * 0.42, ...sx }}>
{initials(name)}
</Avatar>
<Avatar name={name} size={size} />
);
}