create-near-app 7.0.0-beta.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/frontend/components/next-app/package.json +1 -0
- package/templates/frontend/components/next-app/src/components/vm.js +5 -1
- package/templates/frontend/components/next-page/package.json +1 -0
- package/templates/frontend/components/next-page/src/components/vm.js +5 -1
- package/templates/frontend/next-app/package.json +1 -0
- package/templates/frontend/next-app/src/app/globals.css +1 -0
- package/templates/frontend/next-page/package.json +1 -0
- package/templates/frontend/next-page/src/styles/globals.css +1 -0
package/package.json
CHANGED
|
@@ -16,12 +16,16 @@ export default function Component({ src }) {
|
|
|
16
16
|
wallet && initNear && initNear({ networkId: NetworkId, selector: wallet.selector, config: { allowOtherContracts: true } });
|
|
17
17
|
}, [wallet, initNear]);
|
|
18
18
|
|
|
19
|
+
const href = wallet.networkId === 'mainnet' ?
|
|
20
|
+
`https://near.social/mob.near/widget/WidgetSource?src=${src}` :
|
|
21
|
+
`https://test.near.social/eugenethedream/widget/WidgetSource?src=${src}`;
|
|
22
|
+
|
|
19
23
|
return (
|
|
20
24
|
<div>
|
|
21
25
|
<EthersProviderContext.Provider value={ethersContext}>
|
|
22
26
|
<Widget src={src} />
|
|
23
27
|
</EthersProviderContext.Provider>
|
|
24
|
-
<p className="mt-4 small"> <span className="text-secondary">Source:</span> <a href={
|
|
28
|
+
<p className="mt-4 small"> <span className="text-secondary">Source:</span> <a href={href}> {src} </a> </p>
|
|
25
29
|
</div>
|
|
26
30
|
);
|
|
27
31
|
}
|
|
@@ -14,12 +14,16 @@ export default function Component({ src }) {
|
|
|
14
14
|
wallet && initNear && initNear({ networkId: NetworkId, selector: wallet.selector, config: { allowOtherContracts: true } });
|
|
15
15
|
}, [wallet, initNear]);
|
|
16
16
|
|
|
17
|
+
const href = wallet.networkId === 'mainnet' ?
|
|
18
|
+
`https://near.social/mob.near/widget/WidgetSource?src=${src}` :
|
|
19
|
+
`https://test.near.social/eugenethedream/widget/WidgetSource?src=${src}`;
|
|
20
|
+
|
|
17
21
|
return (
|
|
18
22
|
<div>
|
|
19
23
|
<EthersProviderContext.Provider value={ethersContext}>
|
|
20
24
|
<Widget src={src} />
|
|
21
25
|
</EthersProviderContext.Provider>
|
|
22
|
-
<p className="mt-4 small"> <span className="text-secondary">Source:</span> <a href={
|
|
26
|
+
<p className="mt-4 small"> <span className="text-secondary">Source:</span> <a href={href}> {src} </a> </p>
|
|
23
27
|
</div>
|
|
24
28
|
);
|
|
25
29
|
}
|