diff --git a/src/pages/public/account/(BalanceItem)/ui/index.tsx b/src/pages/public/account/(BalanceItem)/ui/index.tsx index 5c795f1..ee7fe67 100644 --- a/src/pages/public/account/(BalanceItem)/ui/index.tsx +++ b/src/pages/public/account/(BalanceItem)/ui/index.tsx @@ -30,9 +30,8 @@ const BalanceItem: FC = ({ number, decimal, item }) => { {item?.asset_code || "XLM"} diff --git a/src/pages/public/account/publicnet.tsx b/src/pages/public/account/publicnet.tsx index e930b76..390ee0b 100644 --- a/src/pages/public/account/publicnet.tsx +++ b/src/pages/public/account/publicnet.tsx @@ -137,8 +137,8 @@ const PublicNet: FC = ({ id }) => { }, [account]); useEffect(() => { - console.log(information.meta_data); - }, [information.meta_data]); + console.log(information); + }, [information]); return ( @@ -539,12 +539,7 @@ const PublicNet: FC = ({ id }) => { ); return (
  • - {processedKey}:{" "} - + {processedKey}: {" "}{processedValue}
  • ); } @@ -641,9 +636,8 @@ const PublicNet: FC = ({ id }) => { {information?.meta_data && information?.meta_data["ORG_NAME"] !== undefined && ignoredHomeDomains && - ignoredHomeDomains.includes( - information?.meta_data["ORG_URL"] - ) ? ( + information?.home_domain && + ignoredHomeDomains.includes(information?.home_domain) ? ( "" ) : (
    diff --git a/src/shared/configs/ignored-home-domains.json b/src/shared/configs/ignored-home-domains.json index 6fe4e4d..94ef839 100644 --- a/src/shared/configs/ignored-home-domains.json +++ b/src/shared/configs/ignored-home-domains.json @@ -1 +1 @@ -["https://lobstr.co"] \ No newline at end of file +["lobstr.co"] \ No newline at end of file diff --git a/src/shared/configs/stellar.toml b/src/shared/configs/stellar.toml new file mode 100644 index 0000000..b3d2229 --- /dev/null +++ b/src/shared/configs/stellar.toml @@ -0,0 +1,7 @@ +ACCOUNTS = [ + "GBIDGDSVQXAHGZNOETS7ADUMWCDSQJU4R53EZRK6ONP3BA42UJL5PAHR", + "GC7BWB2ME4LII3TVWTHUIT7KGJXU4D5M6JUNLQ57WA7JERDNSAEXLOAN", + "GCGLKWJX5BPX2BOCOHYA6KUBZ67FR23DAHLG7VD3YRTGEYGZX57KUGFP", + "GBEUDKANIFPTFHPWJ5T3R6RI036RQBFGHYPAQ6STH7KMNDHAT36LHOLD", + "GA2T6GR7VXXXBETTERSAFETHANSORRYXXXPROTECTEDBYLOBSTRVAULT", +] diff --git a/src/shared/lib/processKeys/index.ts b/src/shared/lib/processKeys/index.tsx similarity index 71% rename from src/shared/lib/processKeys/index.ts rename to src/shared/lib/processKeys/index.tsx index 556b9e2..ad2b3b3 100644 --- a/src/shared/lib/processKeys/index.ts +++ b/src/shared/lib/processKeys/index.tsx @@ -1,5 +1,6 @@ import dataKeys from "@/shared/configs/data-keys.json"; import stellarSdk from "stellar-sdk"; +import Link from "next/link"; // Function to decode base64 strings const decodeBase64 = (str: string | undefined): string => { @@ -18,9 +19,9 @@ const decodeBase64 = (str: string | undefined): string => { const processKeys = ( key: string, value: string -): { processedKey: string; processedValue: string } => { +): { processedKey: string; processedValue: JSX.Element } => { const processedKey = key; - let processedValue = value; + let processedValue: JSX.Element = {decodeBase64(value)}; // Convert regular expression strings to RegExp objects with boundaries and case-insensitive flag const regexPatterns: { [type: string]: RegExp[] } = Object.entries( @@ -39,14 +40,14 @@ const processKeys = ( switch (type) { case "accounts": processedValue = stellarSdk.StrKey.isValidEd25519PublicKey(decodedValue) - ? `${decodedValue}` - : `${decodedValue}`; + ? {decodedValue} + : {decodedValue}; break; case "links": - processedValue = `${decodedValue}`; + processedValue = {decodedValue}; break; case "names": - processedValue = decodedValue; // Add specific processing for names if needed + processedValue = {decodedValue}; // Add specific processing for names if needed break; default: break; @@ -58,4 +59,4 @@ const processKeys = ( return { processedKey, processedValue }; }; -export default processKeys; \ No newline at end of file +export default processKeys; diff --git a/tsconfig.json b/tsconfig.json index 671dd4e..6b30cc8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,7 +35,7 @@ "**/*.ts", "**/*.tsx", ".next/types/**/*.ts" -, "src/shared/lib/popularTags" ], +, "src/shared/lib/popularTags", "src/shared/lib/processKeys/index.tsx" ], "exclude": [ "node_modules" ]