fix(ActivityChannelBadgePanel): ensure loading badge components works

QML is complaining that it can't assign the types to `sourceComponent`,
so this commit wraps them in `Component` types to mitigate that.
This commit is contained in:
Pascal Precht 2021-10-21 11:18:36 +02:00 committed by r4bbit.eth
parent a95348b289
commit 193b42ed54

View File

@ -51,16 +51,19 @@ Rectangle {
} }
} }
ActivityCenter.ReplyComponent { Component {
id: replyComponent id: replyComponent
ActivityCenter.ReplyComponent {
width: childrenRect.width width: childrenRect.width
height: parent.height height: parent.height
replyMessageIndex: wrapper.replyMessageIndex replyMessageIndex: wrapper.replyMessageIndex
repliedMessageContent: wrapper.repliedMessageContent repliedMessageContent: wrapper.repliedMessageContent
} }
}
ActivityCenter.CommunityBadge { Component {
id: communityBadgeComponent id: communityBadgeComponent
ActivityCenter.CommunityBadge {
width: childrenRect.width width: childrenRect.width
height: parent.height height: parent.height
@ -74,9 +77,11 @@ Rectangle {
onCommunityNameClicked: communityNameClicked() onCommunityNameClicked: communityNameClicked()
onChannelNameClicked: channelNameClicked() onChannelNameClicked: channelNameClicked()
} }
}
ActivityCenter.ChannelBadge { Component {
id: channelBadgeComponent id: channelBadgeComponent
ActivityCenter.ChannelBadge {
width: childrenRect.width width: childrenRect.width
height: parent.height height: parent.height
@ -88,3 +93,4 @@ Rectangle {
identicon: wrapper.identicon identicon: wrapper.identicon
} }
} }
}