fix Navbar and Sidebar

This commit is contained in:
João Geonizeli
2021-08-11 21:45:29 -03:00
parent 5fc02f00f8
commit 1847a276f7
8 changed files with 71 additions and 48 deletions

View File

@@ -0,0 +1,11 @@
import { tokens } from "../constants/pancake/Tokens";
const tokensList = Object.values(tokens);
export const getCurrencyLogo = (symbol?: string) => {
const token = tokensList.find((item) => item.symbol === symbol);
if (token) {
return `https://pancakeswap.finance/images/tokens/${token.address["56"]}.svg`;
}
};