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
@@ -1957,7 +1957,8 @@ describe("Helper functions", () => {
it("stringAvatar returns correct props", () => {
const result = stringAvatar("Alice");
expect(result.children).toBe("A");
expect(result.style.backgroundColor).toMatch(/^#/);
expect(result.color).toBeDefined();
expect(typeof result.color).toBe("string");
});
it("InfoRow renders text and link if url is valid", () => {