Skip to content

Commit

Permalink
Add changes needed by athena
Browse files Browse the repository at this point in the history
  • Loading branch information
kacpersaw committed Jan 28, 2025
1 parent 68603f6 commit 5297233
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ const Header = () => {
href: 'https://spacemesh.io/start/',
title: 'join the network',
},
{
href: store.network.dash,
title: 'dashboard',
},
];

return (
Expand Down
2 changes: 2 additions & 0 deletions src/helper/tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export const typeOfTransaction = (type) => {
return 'Vault.Spawn';
case 'TRANSACTION_TYPE_DRAIN_VAULT':
return 'Vault.Drain';
case 'TRANSACTION_TYPE_DEPLOY':
return 'Deploy';
default:
return 'Unspecified';
}
Expand Down
6 changes: 6 additions & 0 deletions src/routes/tx.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ const Tx = () => {
</span>
</li>
)}
{data.tx.type === 'TRANSACTION_TYPE_DEPLOY' && (
<li className="item">
<span className="item-name">Template</span>
<span className="item-value">{data.tx.contents.deploy.template}</span>
</li>
)}
</ul>
</div>
</>
Expand Down
3 changes: 1 addition & 2 deletions src/store/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class Store {

setNetwork(data) {
this.network = this.networks.find((item) => item.value === data.value);
this.network.value += this.network.value.endsWith('/') ? '' : '/';
// this.network.value += this.network.value.endsWith('/') ? '' : '/';
}

setNetInfo(data) {
Expand Down Expand Up @@ -139,7 +139,6 @@ export default class Store {
const data = await response.json();
const networks = data.map((network) => (
{
value: network.dashAPI,
label: network.netName,
dash: network.dash,
explorer: network.explorer,
Expand Down

0 comments on commit 5297233

Please sign in to comment.