Skip to content

Commit

Permalink
Merge pull request #118 from forbole/networks-svgs
Browse files Browse the repository at this point in the history
chore: convert images to svgs
  • Loading branch information
icfor authored Nov 23, 2023
2 parents 3bd729c + 1d7eaca commit 90fe1d4
Show file tree
Hide file tree
Showing 14 changed files with 108 additions and 10 deletions.
Binary file removed public/images/network/ethereum.png
Binary file not shown.
9 changes: 9 additions & 0 deletions public/images/network/ethereum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/network/humansai.png
Binary file not shown.
14 changes: 14 additions & 0 deletions public/images/network/humansai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/network/kyve.png
Binary file not shown.
30 changes: 30 additions & 0 deletions public/images/network/kyve.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/network/neutron.png
Binary file not shown.
22 changes: 22 additions & 0 deletions public/images/network/neutron.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/network/nolus.png
Binary file not shown.
8 changes: 8 additions & 0 deletions public/images/network/nolus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/network/nym.png
Binary file not shown.
12 changes: 12 additions & 0 deletions public/images/network/nym.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ interface CardProp {
setShowMobilePopover: Dispatch<SetStateAction<string>>;
}

const networksWithoutPopover = new Set(["radix"]);

const NetworkCard: FC<CardProp> = (props: CardProp) => {
const { t } = useTranslation("staking");
const router = useRouter();
Expand Down Expand Up @@ -59,10 +61,11 @@ const NetworkCard: FC<CardProp> = (props: CardProp) => {
);

const isEmptyPopover =
!!networkSummary &&
!networkSummary.bonded &&
!networkSummary.APY &&
!networkSummary.TVL;
networksWithoutPopover.has(network.graphql) ||
(!!networkSummary &&
!networkSummary.bonded &&
!networkSummary.APY &&
!networkSummary.TVL);

/* A variable that is used to render the popover. */
const popover = (
Expand Down
12 changes: 6 additions & 6 deletions src/utils/network_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export const logos: IStringIndex = {
"ethereum": {
denom: "ETH",
graphql: "ethereum",
image: "/images/network/ethereum.png",
image: "/images/network/ethereum.svg",
key: "ethereum",
name: "Ethereum",
},
Expand Down Expand Up @@ -509,7 +509,7 @@ export const logos: IStringIndex = {
"nym": {
denom: "NYX",
graphql: "nym",
image: "/images/network/nym.png",
image: "/images/network/nym.svg",
key: "nym",
label: "NYM - NYX",
name: "NYM",
Expand Down Expand Up @@ -665,7 +665,7 @@ export const logos: IStringIndex = {
"humansai": {
denom: "HEART",
graphql: "humansai",
image: "/images/network/humansai.png",
image: "/images/network/humansai.svg",
key: "humansai",
label: "",
name: "Humans.ai",
Expand All @@ -681,7 +681,7 @@ export const logos: IStringIndex = {
"kyve": {
denom: "",
graphql: "kyve",
image: "/images/network/kyve.png",
image: "/images/network/kyve.svg",
key: "kyve",
label: "",
name: "KYVE",
Expand All @@ -705,15 +705,15 @@ export const logos: IStringIndex = {
"nolus": {
denom: "NLS",
graphql: "nolus",
image: "/images/network/nolus.png",
image: "/images/network/nolus.svg",
key: "nolus",
label: "",
name: "Nolus",
},
"neutron": {
denom: "",
graphql: "neutron",
image: "/images/network/neutron.png",
image: "/images/network/neutron.svg",
key: "neutron",
label: "",
name: "Neutron",
Expand Down

0 comments on commit 90fe1d4

Please sign in to comment.