Commit 95d1bcbb authored by tom's avatar tom

Merge branch 'main' of github.com:blockscout/frontend

parents f0441380 2b143a59
[ [
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "easy-staking", "id": "easy-staking",
"title": "Easy Staking Revoke.cash", "title": "Easy Staking Revoke.cash",
...@@ -18,7 +20,9 @@ ...@@ -18,7 +20,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "curve", "id": "curve",
"title": "Curve Revoke.cash", "title": "Curve Revoke.cash",
...@@ -36,7 +40,9 @@ ...@@ -36,7 +40,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "honwyswap", "id": "honwyswap",
"title": "HonwySwap Revoke.cash", "title": "HonwySwap Revoke.cash",
...@@ -54,7 +60,9 @@ ...@@ -54,7 +60,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "sushi", "id": "sushi",
"title": "Sushi Revoke.cash", "title": "Sushi Revoke.cash",
...@@ -72,7 +80,9 @@ ...@@ -72,7 +80,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 100, "chainIds": [
100
],
"author": "xDaichain", "author": "xDaichain",
"id": "bao-finance", "id": "bao-finance",
"title": "Bao Finance", "title": "Bao Finance",
...@@ -90,7 +100,9 @@ ...@@ -90,7 +100,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "component", "id": "component",
"title": "Component", "title": "Component",
...@@ -108,7 +120,9 @@ ...@@ -108,7 +120,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "pooltogether", "id": "pooltogether",
"title": "PoolTogether", "title": "PoolTogether",
...@@ -126,7 +140,9 @@ ...@@ -126,7 +140,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "swapr", "id": "swapr",
"title": "Swapr", "title": "Swapr",
...@@ -144,7 +160,9 @@ ...@@ -144,7 +160,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "levinswap", "id": "levinswap",
"title": "Levinswap", "title": "Levinswap",
...@@ -162,7 +180,9 @@ ...@@ -162,7 +180,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "omen", "id": "omen",
"title": "Omen", "title": "Omen",
...@@ -180,7 +200,9 @@ ...@@ -180,7 +200,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "nifty-ink", "id": "nifty-ink",
"title": "Nifty Ink", "title": "Nifty Ink",
...@@ -198,7 +220,9 @@ ...@@ -198,7 +220,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "treasure-chess", "id": "treasure-chess",
"title": "Treasure Chess", "title": "Treasure Chess",
...@@ -216,7 +240,9 @@ ...@@ -216,7 +240,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "unique-one", "id": "unique-one",
"title": "Unique.One", "title": "Unique.One",
...@@ -234,7 +260,9 @@ ...@@ -234,7 +260,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "cold-truth-culture", "id": "cold-truth-culture",
"title": "Cold Truth Culture", "title": "Cold Truth Culture",
...@@ -252,7 +280,9 @@ ...@@ -252,7 +280,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "xdai-bridge", "id": "xdai-bridge",
"title": "xDai Bridge", "title": "xDai Bridge",
...@@ -270,7 +300,9 @@ ...@@ -270,7 +300,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "omni-bridge", "id": "omni-bridge",
"title": "OmniBridge", "title": "OmniBridge",
...@@ -288,7 +320,9 @@ ...@@ -288,7 +320,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "gnosis-safe", "id": "gnosis-safe",
"title": "Gnosis Safe", "title": "Gnosis Safe",
...@@ -306,7 +340,9 @@ ...@@ -306,7 +340,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "multisender", "id": "multisender",
"title": "Multisender", "title": "Multisender",
...@@ -324,7 +360,9 @@ ...@@ -324,7 +360,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 1, "chainIds": [
1
],
"author": "xDaichain", "author": "xDaichain",
"id": "disperse", "id": "disperse",
"title": "Disperse", "title": "Disperse",
...@@ -342,7 +380,9 @@ ...@@ -342,7 +380,9 @@
"github": "https://github.com/mikhin" "github": "https://github.com/mikhin"
}, },
{ {
"chainId": 99, "chainIds": [
99
],
"author": "xDaichain", "author": "xDaichain",
"id": "symmetric", "id": "symmetric",
"title": "Symmetric", "title": "Symmetric",
......
...@@ -22,7 +22,7 @@ export default function useNavItems() { ...@@ -22,7 +22,7 @@ export default function useNavItems() {
const selectedNetwork = useNetwork(); const selectedNetwork = useNetwork();
const isMarketplaceFilled = useMemo(() => const isMarketplaceFilled = useMemo(() =>
marketplaceApps.filter(item => item.chainId === selectedNetwork?.chainId), marketplaceApps.filter(item => item.chainIds.includes(selectedNetwork?.chainId)),
[ selectedNetwork?.chainId ]) [ selectedNetwork?.chainId ])
.length > 0; .length > 0;
......
...@@ -26,7 +26,7 @@ export type AppItemPreview = { ...@@ -26,7 +26,7 @@ export type AppItemPreview = {
} }
export type AppItemOverview = AppItemPreview & { export type AppItemOverview = AppItemPreview & {
chainId: number; chainIds: Array<number>;
author: string; author: string;
url: string; url: string;
description: string; description: string;
......
...@@ -85,7 +85,7 @@ export default function useMarketplaceApps() { ...@@ -85,7 +85,7 @@ export default function useMarketplaceApps() {
} }
const defaultDisplayedApps = [ ...marketplaceApps ] const defaultDisplayedApps = [ ...marketplaceApps ]
.filter(item => item.chainId === selectedNetwork?.chainId) .filter(item => item.chainIds.includes(selectedNetwork?.chainId))
.sort((a, b) => a.title.localeCompare(b.title)); .sort((a, b) => a.title.localeCompare(b.title));
setDefaultAppList(defaultDisplayedApps); setDefaultAppList(defaultDisplayedApps);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment