Skip to content

Commit

Permalink
Update creditcoin icon and chain name (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyifeng authored Jan 16, 2025
1 parent 0fff28b commit 443adfa
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
5 changes: 5 additions & 0 deletions next/frontedUtils/chain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ export function normalizeChainName(chainName) {
}

export function getChainDisplayName(chainName) {
if (chainName === networks.creditcoin) {
return "Creditcoin Native";
} else if (chainName === networks.creditcoinEvm) {
return "Creditcoin";
}
return startCase(normalizeChainName(chainName));
}
2 changes: 1 addition & 1 deletion next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@osn/common": "^2.0.0",
"@osn/common-ui": "^1.24.1",
"@osn/common-ui": "^1.25.1",
"@osn/constants": "^1.1.2",
"@osn/icons": "^1.132.0",
"@osn/polkadot-react-identicon": "^1.0.10",
Expand Down
Binary file modified next/public/imgs/icons/space/creditcoin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 14 additions & 7 deletions next/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ __metadata:
resolution: "@collaboration/voting@workspace:."
dependencies:
"@osn/common": ^2.0.0
"@osn/common-ui": ^1.24.1
"@osn/common-ui": ^1.25.1
"@osn/constants": ^1.1.2
"@osn/eslint-config": ^1.0.2
"@osn/icons": ^1.132.0
Expand Down Expand Up @@ -2582,12 +2582,12 @@ __metadata:
languageName: node
linkType: hard

"@osn/common-ui@npm:^1.24.1":
version: 1.24.1
resolution: "@osn/common-ui@npm:1.24.1"
"@osn/common-ui@npm:^1.25.1":
version: 1.25.1
resolution: "@osn/common-ui@npm:1.25.1"
dependencies:
"@floating-ui/react": ^0.26.6
"@osn/icons": ^1.138.0
"@osn/icons": ^1.169.1
"@osn/polkadot-react-identicon": ^1.0.10
"@radix-ui/react-dialog": ^1.0.5
"@radix-ui/react-tooltip": ^1.0.7
Expand All @@ -2613,7 +2613,7 @@ __metadata:
semantic-ui-css: ^2.4.1
semantic-ui-react: ^2.1.3
styled-components: ^6.1.6
checksum: ae0428255cab2bc972861dd3bd500165127dc9b1832b751d5c32403d615da61e4bdad34034903fbbbdc5754275fea3c5bad22558a4eaac41cc0c97ec44db04ff
checksum: 8a36dc757044606dc9bcf733e91ce1b31cedeae449263a51e29c3e86c6a98a112d2d68bad1d06b63ea5dc6ff0cc2e9c37a687ff79b684870a3f5dfa192014cb8
languageName: node
linkType: hard

Expand Down Expand Up @@ -2652,13 +2652,20 @@ __metadata:
languageName: node
linkType: hard

"@osn/icons@npm:^1.132.0, @osn/icons@npm:^1.138.0":
"@osn/icons@npm:^1.132.0":
version: 1.139.0
resolution: "@osn/icons@npm:1.139.0"
checksum: c5ed98446f2434a3c1951e0ce452a93dc617bf500e25339dd023b7a8c155a8208d5c486af4749580adc5ef9db57f72fc90c711df653375c8d3103e9d6451de4b
languageName: node
linkType: hard

"@osn/icons@npm:^1.169.1":
version: 1.169.1
resolution: "@osn/icons@npm:1.169.1"
checksum: 43cdd19497fd4d1db5600da531a9cfeefff341b733b011174fd9572bc3ff2c6b59fcc5bddbe08920985f016baec249bba667e2cda9c17d76111295d1da920e36
languageName: node
linkType: hard

"@osn/polkadot-react-identicon@npm:^1.0.10":
version: 1.0.10
resolution: "@osn/polkadot-react-identicon@npm:1.0.10"
Expand Down

0 comments on commit 443adfa

Please sign in to comment.