JUP Asset details (#285)

*  add JUP assets

* localize eg
This commit is contained in:
Jared Vu
2024-02-07 09:49:46 -08:00
committed by GitHub
parent 3b75e60bd2
commit 597456a0d1
11 changed files with 141 additions and 106 deletions
+19 -17
View File
@@ -5,23 +5,24 @@ import { useSelectedNetwork } from '@/hooks';
const FALLBACK_URL = 'https://help.dydx.exchange/';
export interface LinksConfigs {
tos: string,
privacy: string,
mintscan: string,
mintscanBase: string,
feedback?: string,
help?: string,
blogs?: string,
foundation?: string,
initialMarginFractionLearnMore?: string,
reduceOnlyLearnMore?: string,
documentation?: string,
community?: string,
governanceLearnMore?: string,
stakingLearnMore?: string,
keplrDashboard?: string,
accountExportLearnMore?: string,
walletLearnMore?: string
tos: string;
privacy: string;
mintscan: string;
mintscanBase: string;
feedback?: string;
help?: string;
blogs?: string;
foundation?: string;
initialMarginFractionLearnMore?: string;
reduceOnlyLearnMore?: string;
documentation?: string;
community?: string;
governanceLearnMore?: string;
newMarketProposalLearnMore: string;
stakingLearnMore?: string;
keplrDashboard?: string;
accountExportLearnMore?: string;
walletLearnMore?: string;
}
export const useURLConfigs = (): LinksConfigs => {
@@ -42,6 +43,7 @@ export const useURLConfigs = (): LinksConfigs => {
documentation: linksConfigs.documentation || FALLBACK_URL,
community: linksConfigs.community || FALLBACK_URL,
governanceLearnMore: linksConfigs.governanceLearnMore || FALLBACK_URL,
newMarketProposalLearnMore: linksConfigs.newMarketProposalLearnMore || FALLBACK_URL,
stakingLearnMore: linksConfigs.stakingLearnMore || FALLBACK_URL,
keplrDashboard: linksConfigs.keplrDashboard || FALLBACK_URL,
accountExportLearnMore: linksConfigs.accountExportLearnMore || FALLBACK_URL,