Commit d5b63d33 authored by Yuri Mikhin's avatar Yuri Mikhin Committed by Yuri Mikhin

Fix marketplace apps chainId prop.

parent 3677ba96
[ [
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "easy-staking", "id": "easy-staking",
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "curve", "id": "curve",
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "honwyswap", "id": "honwyswap",
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "sushi", "id": "sushi",
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
100 "100"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "bao-finance", "id": "bao-finance",
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "component", "id": "component",
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "pooltogether", "id": "pooltogether",
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "swapr", "id": "swapr",
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "levinswap", "id": "levinswap",
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "omen", "id": "omen",
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "nifty-ink", "id": "nifty-ink",
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "treasure-chess", "id": "treasure-chess",
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "unique-one", "id": "unique-one",
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "cold-truth-culture", "id": "cold-truth-culture",
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "xdai-bridge", "id": "xdai-bridge",
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "omni-bridge", "id": "omni-bridge",
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "gnosis-safe", "id": "gnosis-safe",
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "multisender", "id": "multisender",
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
1 "1"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "disperse", "id": "disperse",
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
}, },
{ {
"chainIds": [ "chainIds": [
99 "99"
], ],
"author": "xDaichain", "author": "xDaichain",
"id": "symmetric", "id": "symmetric",
......
...@@ -26,7 +26,7 @@ export type AppItemPreview = { ...@@ -26,7 +26,7 @@ export type AppItemPreview = {
} }
export type AppItemOverview = AppItemPreview & { export type AppItemOverview = AppItemPreview & {
chainIds: Array<number>; chainIds: Array<string>;
author: string; author: string;
url: string; url: string;
description: string; description: string;
......
...@@ -30,7 +30,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => { ...@@ -30,7 +30,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
useEffect(() => { useEffect(() => {
if (app && !isFrameLoading) { if (app && !isFrameLoading) {
ref?.current?.contentWindow?.postMessage({ blockscoutColorMode: colorMode, blockscoutChainId: appConfig.network.id }, app.url); ref?.current?.contentWindow?.postMessage({ blockscoutColorMode: colorMode, blockscoutChainId: Number(appConfig.network.id) }, app.url);
} }
}, [ isFrameLoading, app, colorMode, ref ]); }, [ isFrameLoading, app, colorMode, ref ]);
...@@ -38,7 +38,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => { ...@@ -38,7 +38,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
<Page wrapChildren={ false }> <Page wrapChildren={ false }>
<Center <Center
as="main" as="main"
h="100%" h="100vh"
paddingTop={{ base: '138px', lg: 0 }} paddingTop={{ base: '138px', lg: 0 }}
> >
{ (isFrameLoading) && ( { (isFrameLoading) && (
......
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