fix(@wallet): disable state for refresh

in case not interactive, we should not change the color on hover
This commit is contained in:
Anthony Laibe 2024-07-11 10:16:26 +02:00 committed by Belal Shehab
parent 2a4e341f9d
commit b2592d5d01
1 changed files with 10 additions and 1 deletions

View File

@ -93,7 +93,16 @@ Item {
hoverColor: Theme.palette.baseColor2
icon.name: "refresh"
icon.color: hovered ? Theme.palette.directColor1 : Theme.palette.baseColor1
icon.color: {
if (!interactive) {
return Theme.palette.baseColor1;
}
if (hovered) {
return Theme.palette.directColor1;
}
return Theme.palette.baseColor1;
}
asset.mirror: true
loading: RootStore.isAccountTokensReloading