mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
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:
parent
a95348b289
commit
193b42ed54
@ -51,16 +51,19 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
ActivityCenter.ReplyComponent {
|
||||
Component {
|
||||
id: replyComponent
|
||||
ActivityCenter.ReplyComponent {
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
replyMessageIndex: wrapper.replyMessageIndex
|
||||
repliedMessageContent: wrapper.repliedMessageContent
|
||||
}
|
||||
}
|
||||
|
||||
ActivityCenter.CommunityBadge {
|
||||
Component {
|
||||
id: communityBadgeComponent
|
||||
ActivityCenter.CommunityBadge {
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
|
||||
@ -74,9 +77,11 @@ Rectangle {
|
||||
onCommunityNameClicked: communityNameClicked()
|
||||
onChannelNameClicked: channelNameClicked()
|
||||
}
|
||||
}
|
||||
|
||||
ActivityCenter.ChannelBadge {
|
||||
Component {
|
||||
id: channelBadgeComponent
|
||||
ActivityCenter.ChannelBadge {
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
|
||||
@ -88,3 +93,4 @@ Rectangle {
|
||||
identicon: wrapper.identicon
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user