From 682b21c9f9a7999cccfb0fffce26fd052680e3f3 Mon Sep 17 00:00:00 2001 From: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com> Date: Wed, 18 Nov 2020 00:01:15 -0600 Subject: [PATCH] feat: use token names --- src/App.less | 7 ++++-- src/components/CurrentUserBadge/index.tsx | 6 ++++-- src/config/tokens.json | 14 ++++++++++++ src/contexts/accounts.tsx | 16 +++++--------- src/contexts/connection.tsx | 4 +++- src/views/deposit/view/item.tsx | 2 +- src/views/home/item.tsx | 26 ++++++++++++++--------- 7 files changed, 48 insertions(+), 27 deletions(-) create mode 100644 src/config/tokens.json diff --git a/src/App.less b/src/App.less index 27a52ca..c90a791 100644 --- a/src/App.less +++ b/src/App.less @@ -27,7 +27,10 @@ body { .Banner-description { color: black; text-align: center; - width: 100%; + display: flex; + align-self: center; + align-items: center; + height: 100%; } .App-Bar { @@ -168,7 +171,7 @@ body { } .ant-pro-basicLayout { - min-height: calc(100% - 30px); + min-height: calc(100% - 30px) !important; } .ant-table-cell { diff --git a/src/components/CurrentUserBadge/index.tsx b/src/components/CurrentUserBadge/index.tsx index e278869..05cf747 100644 --- a/src/components/CurrentUserBadge/index.tsx +++ b/src/components/CurrentUserBadge/index.tsx @@ -1,6 +1,6 @@ import React from "react"; import { useWallet } from "../../contexts/wallet"; -import { shortenAddress } from "../../utils/utils"; +import { formatNumber, shortenAddress } from "../../utils/utils"; import { Identicon } from "../Identicon"; import { useNativeAccount } from "../../contexts/accounts"; import { LAMPORTS_PER_SOL } from "@solana/web3.js"; @@ -13,10 +13,12 @@ export const CurrentUserBadge = (props: {}) => { return null; } + // should use SOL ◎ ? + return (