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