Skip to content

Commit

Permalink
feat: Adjust the display of blockchain network - MEED-7676 - Meeds-io…
Browse files Browse the repository at this point in the history
…/MIPs#118 (#70)

This change will adjust the display of blockchain network.
  • Loading branch information
MayTekayaa committed Nov 28, 2024
1 parent 07f4bb4 commit 3f4bfce
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 8 deletions.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
21 changes: 21 additions & 0 deletions gamification-evm-webapp/src/main/webapp/images/polygonLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ export default {
},
networkImageUrl() {
if (this.networkId === 137 || this.networkId === 80002) {
return '/gamification-evm/images/polygon.png';
return '/gamification-evm/images/polygonLogo.svg';
} else {
return '/gamification-evm/images/EVM.png';
return '/gamification-evm/images/EethereumLogo.svg';
}
},
addressLabel() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<template>
<v-chip
dark
class="width-fit-content my-0">
<v-avatar left>
<v-img :src="networkImageUrl" />
</v-avatar>
class="width-fit-content my-0 ps-0">
<v-img
:src="networkImageUrl"
height="30px"
width="30px"
class="rounded-circle me-3" />
<span class="text-truncate">
{{ networkName }}
</span>
Expand All @@ -43,9 +45,9 @@ export default {
},
networkImageUrl() {
if (this.networkName === 'Polygon') {
return '/gamification-evm/images/polygon.png';
return '/gamification-evm/images/polygonLogo.svg';
} else {
return '/gamification-evm/images/EVM.png';
return '/gamification-evm/images/ethereumLogo.svg';
}
}
}
Expand Down

0 comments on commit 3f4bfce

Please sign in to comment.