renamed dialog, added reactions menu

This commit is contained in:
Dan Ditomaso
2025-04-07 11:42:15 -04:00
parent e410ccb2f4
commit 0e868cef58
12 changed files with 239 additions and 142 deletions
+4 -3
View File
@@ -10,7 +10,7 @@ type RGBColor = {
};
interface AvatarProps {
text: string;
text: string | number;
size?: "sm" | "lg";
className?: string;
showError?: boolean;
@@ -68,10 +68,11 @@ export const Avatar: React.FC<AvatarProps> = ({
};
};
const bgColor = getColorFromText(text ?? "UNK");
const safeText = text?.toString().toUpperCase() ?? "UNK";
const bgColor = getColorFromText(safeText);
const isLight = ColorUtils.isLight(bgColor);
const textColor = isLight ? "#000000" : "#FFFFFF";
const initials = text?.toUpperCase().slice(0, 4) ?? "UNK";
const initials = safeText.slice(0, 4) ?? "UNK";
return (
<div