Update avatar component

This commit is contained in:
lenhanphung
2026-01-05 08:46:32 +07:00
parent 462ad6d250
commit 24f8895baa
8 changed files with 42 additions and 53 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import CancelIcon from "@mui/icons-material/Cancel";
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
import { Avatar, Badge, Box, Typography } from "@linagora/twake-mui";
import { stringToGradient } from "../../../utils/avatarUtils";
import { ThunkDispatch } from "@reduxjs/toolkit";
import {
emptyEventsCal,
@@ -101,7 +102,7 @@ export function stringToColor(string: string) {
export function stringAvatar(name: string) {
return {
style: { backgroundColor: stringToColor(name) },
color: stringToGradient(name),
children: name[0],
};
}