Skip to content

Commit 0c28405

Browse files
committed
fix: hardcoded avatars
1 parent 3662175 commit 0c28405

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

examples/SampleApp/src/screens/ChannelScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const ChannelHeader: React.FC<ChannelHeaderProps> = ({ channel }) => {
103103
opacity: pressed ? 0.5 : 1,
104104
})}
105105
>
106-
<ChannelAvatar channel={channel} size='lg' />
106+
<ChannelAvatar channel={channel} size='xl' />
107107
</Pressable>
108108
)}
109109
showUnreadCountBadge

package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const ChannelDetailsHeader = ({ channel }: ChannelDetailsHeaderProps) =>
5555

5656
return (
5757
<View style={styles.headerContainer}>
58-
<ChannelAvatar channel={channel} size={'lg'} />
58+
<ChannelAvatar channel={channel} size={'xl'} />
5959
<View style={styles.metaContainer}>
6060
<View style={styles.titleContainer}>
6161
<ChannelPreviewTitle channel={channel} />

package/src/components/ui/Avatar/ChannelAvatar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ export const ChannelAvatar = (props: ChannelAvatarProps) => {
5858

5959
if (usersWithoutSelf.length > 1) {
6060
return (
61-
<UserAvatarGroup size='xl' users={usersForGroup} showOnlineIndicator={showOnlineIndicator} />
61+
<UserAvatarGroup
62+
size={size}
63+
users={usersForGroup}
64+
showOnlineIndicator={showOnlineIndicator}
65+
/>
6266
);
6367
} else {
6468
return (

0 commit comments

Comments
 (0)