mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 20:40:18 +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,40 +51,46 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
ActivityCenter.ReplyComponent {
|
||||
Component {
|
||||
id: replyComponent
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
replyMessageIndex: wrapper.replyMessageIndex
|
||||
repliedMessageContent: wrapper.repliedMessageContent
|
||||
ActivityCenter.ReplyComponent {
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
replyMessageIndex: wrapper.replyMessageIndex
|
||||
repliedMessageContent: wrapper.repliedMessageContent
|
||||
}
|
||||
}
|
||||
|
||||
ActivityCenter.CommunityBadge {
|
||||
Component {
|
||||
id: communityBadgeComponent
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
ActivityCenter.CommunityBadge {
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
|
||||
textColor: wrapper.textColor
|
||||
image: wrapper.communityThumbnailImage
|
||||
iconColor: wrapper.communityColor
|
||||
communityName: wrapper.communityName
|
||||
channelName: wrapper.channelName
|
||||
name: wrapper.name
|
||||
textColor: wrapper.textColor
|
||||
image: wrapper.communityThumbnailImage
|
||||
iconColor: wrapper.communityColor
|
||||
communityName: wrapper.communityName
|
||||
channelName: wrapper.channelName
|
||||
name: wrapper.name
|
||||
|
||||
onCommunityNameClicked: communityNameClicked()
|
||||
onChannelNameClicked: channelNameClicked()
|
||||
onCommunityNameClicked: communityNameClicked()
|
||||
onChannelNameClicked: channelNameClicked()
|
||||
}
|
||||
}
|
||||
|
||||
ActivityCenter.ChannelBadge {
|
||||
Component {
|
||||
id: channelBadgeComponent
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
ActivityCenter.ChannelBadge {
|
||||
width: childrenRect.width
|
||||
height: parent.height
|
||||
|
||||
realChatType: wrapper.realChatType
|
||||
textColor: wrapper.textColor
|
||||
name: wrapper.name
|
||||
chatId: wrapper.chatId
|
||||
profileImage: wrapper.profileImage
|
||||
identicon: wrapper.identicon
|
||||
realChatType: wrapper.realChatType
|
||||
textColor: wrapper.textColor
|
||||
name: wrapper.name
|
||||
chatId: wrapper.chatId
|
||||
profileImage: wrapper.profileImage
|
||||
identicon: wrapper.identicon
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user