10000 Verify snapshot tests of the external contribution · GetStream/stream-chat-swiftui@d9270ee · GitHub
[go: up one dir, main page]

Skip to content

Commit d9270ee

Browse files
committed
Verify snapshot tests of the external contribution
1 parent 1ceac73 commit d9270ee

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChannelHeader/ChatChannelHeaderViewModifier.swift

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public struct DefaultChatChannelHeader: ToolbarContent {
6464
resignFirstResponder()
6565
isActive = true
6666
} label: {
67-
Rectangle()
68-
.fill(Color(colors.background))
69-
.contentShape(Rectangle())
70-
.frame(width: 36, height: 36)
71-
.clipShape(Circle())
72-
.offset(x: 8)
67+
ChannelAvatarView(
68+
avatar: headerImage,
69+
showOnlineIndicator: onlineIndicatorShown,
70+
size: CGSize(width: 36, height: 36)
71+
)
72+
.offset(x: 4)
7373
}
7474
.accessibilityLabel(Text(L10n.Channel.Header.Info.title))
7575

@@ -79,15 +79,6 @@ public struct DefaultChatChannelHeader: ToolbarContent {
7979
EmptyView()
8080
}
8181
.accessibilityHidden(true)
82-
83-
ChannelAvatarView(
84-
avatar: headerImage,
85-
showOnlineIndicator: onlineIndicatorShown,
86-
size: CGSize(width: 36, height: 36)
87-
)
88-
.offset(x: 8)
89-
.allowsHitTesting(false)
90-
.accessibilityHidden(true)
9182
}
9283
.accessibilityIdentifier("ChannelAvatarView")
9384
}

0 commit comments

Comments
 (0)
0