Skip to content

Commit

Permalink
More improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dastansam committed Mar 21, 2024
1 parent e62912d commit 9ac7987
Show file tree
Hide file tree
Showing 8 changed files with 233 additions and 162 deletions.
Binary file added interface/public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 3 additions & 7 deletions interface/src/components/AccountSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from "semantic-ui-react";

import { useSubstrate, useSubstrateState } from "../substrate-lib";
import { formatAmount } from "../utils";

const CHROME_EXT_URL =
"https://chrome.google.com/webstore/detail/polkadot%7Bjs%7D-extension/mopnmbcafieddcagagdcbnhejhlodfdd";
Expand Down Expand Up @@ -63,10 +62,7 @@ function Main(props) {
>
<Container>
<Menu.Menu>
<Image
src={`${process.env.PUBLIC_URL}/assets/substrate-logo.png`}
size="mini"
/>
<Image src={`images/logo.png`} size="mini" />
</Menu.Menu>
<Menu.Menu position="right" style={{ alignItems: "center" }}>
{!currentAccount ? (
Expand Down Expand Up @@ -121,7 +117,7 @@ function BalanceAnnotation(props) {
currentAccount &&
api.query.system
.account(acctAddr(currentAccount), (balance) =>
setAccountBalance(balance.data.free)
setAccountBalance(balance.data.free.toHuman())
)
.then((unsub) => (unsubscribe = unsub))
.catch(console.error);
Expand All @@ -132,7 +128,7 @@ function BalanceAnnotation(props) {
return currentAccount ? (
<Label pointing="left">
<Icon name="money" color="green" />
{formatAmount(accountBalance)}
{accountBalance}
</Label>
) : null;
}
Expand Down
Loading

0 comments on commit 9ac7987

Please sign in to comment.