chore: silence warnings
This commit is contained in:
parent
919f3dc6f7
commit
3fd196323e
|
@ -42,7 +42,7 @@ int main(int argc, char *argv[])
|
|||
qmlRegisterType<SectionsDecoratorModel>("Storybook", 1, 0, "SectionsDecoratorModel");
|
||||
qmlRegisterType<FigmaDecoratorModel>("Storybook", 1, 0, "FigmaDecoratorModel");
|
||||
qmlRegisterType<FigmaLinksSource>("Storybook", 1, 0, "FigmaLinksSource");
|
||||
qmlRegisterUncreatableType<FigmaLinks>("Storybook", 1, 0, "FigmaLinks", "");
|
||||
qmlRegisterUncreatableType<FigmaLinks>("Storybook", 1, 0, "FigmaLinks", {});
|
||||
|
||||
registerStatusQTypes();
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.14
|
||||
|
||||
QtObject {
|
||||
property var accountSensitiveSettings: {}
|
||||
property var accountSensitiveSettings: ({})
|
||||
property var dappList: []
|
||||
}
|
||||
|
|
|
@ -110,9 +110,9 @@ Item {
|
|||
Component {
|
||||
id: sectionDelegateComponent
|
||||
Item {
|
||||
width: parent.width
|
||||
width: ListView.view.width
|
||||
height: 24
|
||||
StyledText {
|
||||
StatusBaseText {
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: Style.current.padding
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
|
|
@ -32,7 +32,7 @@ Item {
|
|||
|
||||
property var store
|
||||
property bool hasAddedContacts: false
|
||||
property var communityData: store.mainModuleInst ? store.mainModuleInst.activeSection || {} : {}
|
||||
property var communityData: store.mainModuleInst ? store.mainModuleInst.activeSection || ({}) : ({})
|
||||
property Component membershipRequestPopup
|
||||
|
||||
signal infoButtonClicked
|
||||
|
|
|
@ -71,7 +71,7 @@ StatusScrollView {
|
|||
name: model.name
|
||||
description: model.description
|
||||
members: model.members
|
||||
activeUsers: model.activeMembers ? model.activeMembers : 0
|
||||
activeUsers: model.activeMembers ?? 0
|
||||
popularity: model.popularity
|
||||
categories: tagsJson.model
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
import StatusQ.Components 0.1
|
||||
import StatusQ.Core.Theme 0.1
|
||||
import StatusQ.Core 0.1
|
||||
|
||||
StatusListItem {
|
||||
property var community
|
||||
|
|
|
@ -33,8 +33,7 @@ StatusListItem {
|
|||
StatusIcon {
|
||||
id: shevronIcon
|
||||
visible: root.showShevronIcon
|
||||
icon: "chevron-down"
|
||||
rotation: 270
|
||||
icon: "next"
|
||||
color: Theme.palette.baseColor1
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ Item {
|
|||
width: parent.width
|
||||
asset.name: token && token.symbol ? Style.png("tokens/%1".arg(token.symbol)) : ""
|
||||
asset.isImage: true
|
||||
primaryText: token ? token.name : ""
|
||||
primaryText: token.name ?? ""
|
||||
secondaryText: token ? LocaleUtils.currencyAmountToLocaleString(token.enabledNetworkBalance) : ""
|
||||
tertiaryText: token ? LocaleUtils.currencyAmountToLocaleString(token.enabledNetworkCurrencyBalance) : ""
|
||||
balances: token && token.balances ? token.balances : null
|
||||
|
@ -290,7 +290,7 @@ Item {
|
|||
Layout.fillWidth: true
|
||||
}
|
||||
InformationTile {
|
||||
readonly property double changePctHour: token ? token.changePctHour : 0
|
||||
readonly property double changePctHour: token.changePctHour ?? 0
|
||||
maxWidth: parent.width
|
||||
primaryText: qsTr("Hour")
|
||||
secondaryText: changePctHour ? "%1%".arg(LocaleUtils.numberToLocaleString(changePctHour, 2)) : "---"
|
||||
|
@ -299,7 +299,7 @@ Item {
|
|||
Theme.palette.successColor1
|
||||
}
|
||||
InformationTile {
|
||||
readonly property double changePctDay: token ? token.changePctDay : 0
|
||||
readonly property double changePctDay: token.changePctDay ?? 0
|
||||
maxWidth: parent.width
|
||||
primaryText: qsTr("Day")
|
||||
secondaryText: changePctDay ? "%1%".arg(LocaleUtils.numberToLocaleString(changePctDay, 2)) : "---"
|
||||
|
@ -308,7 +308,7 @@ Item {
|
|||
Theme.palette.successColor1
|
||||
}
|
||||
InformationTile {
|
||||
readonly property double changePct24hour: token ? token.changePct24hour : 0
|
||||
readonly property double changePct24hour: token.changePct24hour ?? 0
|
||||
maxWidth: parent.width
|
||||
primaryText: qsTr("24 Hours")
|
||||
secondaryText: changePct24hour ? "%1%".arg(LocaleUtils.numberToLocaleString(changePct24hour, 2)) : "---"
|
||||
|
@ -355,7 +355,7 @@ Item {
|
|||
font.pixelSize: 15
|
||||
lineHeight: 22
|
||||
lineHeightMode: Text.FixedHeight
|
||||
text: token ? token.description : ""
|
||||
text: token.description ?? ""
|
||||
color: Theme.palette.directColor1
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.Wrap
|
||||
|
@ -390,7 +390,7 @@ Item {
|
|||
|
||||
image.source: token && token.builtOn !== "" ? Style.svg("tiny/" + RootStore.getNetworkIconUrl(token.builtOn)) : ""
|
||||
tagPrimaryLabel.text: token && token.builtOn !== "" ? RootStore.getNetworkName(token.builtOn) : "---"
|
||||
tagSecondaryLabel.text: token && token.address !== "" ? token.address : "---"
|
||||
tagSecondaryLabel.text: token.address ?? "---"
|
||||
visible: typeof token != "undefined" && token && token.builtOn !== "" && token.address !== ""
|
||||
customBackground: Component {
|
||||
Rectangle {
|
||||
|
|
|
@ -126,7 +126,7 @@ ColumnLayout {
|
|||
spacing: 12
|
||||
Rectangle {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: Style.curent.padding
|
||||
Layout.topMargin: Style.current.padding
|
||||
Layout.preferredWidth: parent.width - 100
|
||||
Layout.preferredHeight: 1
|
||||
color: Theme.palette.directColor8
|
||||
|
|
|
@ -87,7 +87,7 @@ Pane {
|
|||
}
|
||||
|
||||
readonly property var conns: Connections {
|
||||
target: root.contactsStore.myContactsModel
|
||||
target: root.contactsStore.myContactsModel ?? null
|
||||
|
||||
function onItemChanged(pubKey) {
|
||||
if (pubKey === root.publicKey)
|
||||
|
@ -97,7 +97,7 @@ Pane {
|
|||
|
||||
// FIXME: use myContactsModel for identity verification
|
||||
readonly property var conns2: Connections {
|
||||
target: root.contactsStore.receivedContactRequestsModel
|
||||
target: root.contactsStore.receivedContactRequestsModel ?? null
|
||||
|
||||
function onItemChanged(pubKey) {
|
||||
if (pubKey === root.publicKey)
|
||||
|
@ -106,7 +106,7 @@ Pane {
|
|||
}
|
||||
|
||||
readonly property var conns3: Connections {
|
||||
target: root.contactsStore.sentContactRequestsModel
|
||||
target: root.contactsStore.sentContactRequestsModel ?? null
|
||||
|
||||
function onItemChanged(pubKey) {
|
||||
if (pubKey === root.publicKey)
|
||||
|
|
Loading…
Reference in New Issue