Skip to content

Commit

Permalink
Avatar: make code more readable. Constants: add missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
kesha-antonov committed Aug 24, 2024
1 parent 6998f8f commit f57bc99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ export function Avatar<TMessage extends IMessage = IMessage> (
<View
style={[
styles[position].container,
containerStyle && containerStyle[position],
containerStyle?.[position],
]}
>
<GiftedAvatar
avatarStyle={[
styles[position].image,
imageStyle && imageStyle[position],
imageStyle?.[position],
]}
/>
</View>
Expand All @@ -133,7 +133,7 @@ export function Avatar<TMessage extends IMessage = IMessage> (
<GiftedAvatar
avatarStyle={[
styles[position].image,
imageStyle && imageStyle[position],
imageStyle?.[position],
]}
user={currentMessage.user}
onPress={() => onPressAvatar?.(currentMessage.user)}
Expand All @@ -149,7 +149,7 @@ export function Avatar<TMessage extends IMessage = IMessage> (
style={[
styles[position].container,
renderAvatarOnTop && styles[position].onTop,
containerStyle && containerStyle[position],
containerStyle?.[position],
]}
>
{renderAvatarComponent()}
Expand Down
2 changes: 1 addition & 1 deletion src/Constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const MIN_COMPOSER_HEIGHT = Platform.select({
ios: 33,
android: 41,
web: 34,
windows: 34
windows: 34,
})
export const MAX_COMPOSER_HEIGHT = 200
export const DEFAULT_PLACEHOLDER = 'Type a message...'
Expand Down

0 comments on commit f57bc99

Please sign in to comment.