diff --git a/src/app/components/member-tile/MemberTile.tsx b/src/app/components/member-tile/MemberTile.tsx index d36d46c2..fba2269b 100644 --- a/src/app/components/member-tile/MemberTile.tsx +++ b/src/app/components/member-tile/MemberTile.tsx @@ -5,6 +5,7 @@ import { getMemberDisplayName } from '../../utils/room'; import { getMxIdLocalPart } from '../../utils/matrix'; import { UserAvatar } from '../user-avatar'; import * as css from './style.css'; +import { useSableCosmetics } from '../../hooks/useSableCosmetics'; const getName = (room: Room, member: RoomMember) => getMemberDisplayName(room, member.userId) ?? getMxIdLocalPart(member.userId) ?? member.userId; @@ -26,6 +27,10 @@ export const MemberTile = as<'button', MemberTileProps>( ? mx.mxcUrlToHttp(avatarMxcUrl, 100, 100, 'crop', undefined, false, useAuthentication) : undefined; + + // Sable username color and fonts + const { color, font } = useSableCosmetics(member.userId, room); + return ( @@ -37,7 +42,8 @@ export const MemberTile = as<'button', MemberTileProps>( /> - + {name} diff --git a/src/app/components/user-profile/UserHero.tsx b/src/app/components/user-profile/UserHero.tsx index f376c4d8..8d890493 100644 --- a/src/app/components/user-profile/UserHero.tsx +++ b/src/app/components/user-profile/UserHero.tsx @@ -21,10 +21,7 @@ import { UserPresence } from '../../hooks/useUserPresence'; import { AvatarPresence, PresenceBadge } from '../presence'; import { ImageViewer } from '../image-viewer'; import { stopPropagation } from '../../utils/keyboard'; -import { useMatrixClient } from '../../hooks/useMatrixClient'; import { useRoom } from '../../hooks/useRoom'; -import { EventTimeline, EventTimelineSet } from 'matrix-js-sdk'; -import { StateEvent } from '../../../types/matrix/room'; import { useSableCosmetics } from '../../hooks/useSableCosmetics'; type UserHeroProps = {