Revert "updates on the ui changes"

This reverts commit 298fc603a0.
This commit is contained in:
2026-07-14 12:13:46 +05:30
parent 298fc603a0
commit d2f264460a
44 changed files with 4661 additions and 7053 deletions

View File

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