diff --git a/client/src/components/Collections/Catalog/TokenGrid.tsx b/client/src/components/Collections/Catalog/TokenGrid.tsx
index 596366bf..320b0b75 100644
--- a/client/src/components/Collections/Catalog/TokenGrid.tsx
+++ b/client/src/components/Collections/Catalog/TokenGrid.tsx
@@ -4,8 +4,10 @@ import { AspectRatio, Box, Flex, Grid, Image, Text } from '@chakra-ui/react';
import { Wind, HelpCircle } from 'react-feather';
import { Token, CollectionsState } from '../../../reducer/slices/collections';
import { ipfsUriToGatewayUrl } from '../../../lib/util/ipfs';
+import { useSelector } from '../../../reducer';
interface TokenTileProps extends Token {
+ network: string;
selectedCollection: string;
}
@@ -61,7 +63,9 @@ function TokenTile(props: TokenTileProps) {
>
-
+
s.system.config.network);
const selectedCollection = state.selectedCollection;
if (selectedCollection === null) {
@@ -131,6 +136,7 @@ export default function TokenGrid({ state, walletAddress }: TokenGridProps) {
);
diff --git a/client/src/components/Collections/TokenDetail/index.tsx b/client/src/components/Collections/TokenDetail/index.tsx
index 9eed6845..cd017a74 100644
--- a/client/src/components/Collections/TokenDetail/index.tsx
+++ b/client/src/components/Collections/TokenDetail/index.tsx
@@ -134,7 +134,9 @@ function TokenDetail({ contractAddress, tokenId }: TokenDetailProps) {
-
+
diff --git a/client/src/components/CreateNonFungiblePage/FileUpload.tsx b/client/src/components/CreateNonFungiblePage/FileUpload.tsx
index 913231a3..163fc5eb 100644
--- a/client/src/components/CreateNonFungiblePage/FileUpload.tsx
+++ b/client/src/components/CreateNonFungiblePage/FileUpload.tsx
@@ -11,6 +11,7 @@ import { uploadFiletoIpfs } from '../../lib/util/ipfs';
export default function FileUpload() {
const state = useSelector(s => s.createNft);
+ const network = useSelector(s => s.system.config.network);
const dispatch = useDispatch();
const onDrop = useCallback(
@@ -59,7 +60,7 @@ export default function FileUpload() {
p={4}
maxWidth="400px"
maxHeight="400px"
- src={ipfsUriToGatewayUrl(state.artifactUri)}
+ src={ipfsUriToGatewayUrl(network, state.artifactUri)}
/>
) : (
s.system.config.network);
const state = useSelector(s => s.createNft);
const { name, description } = state.fields;
return (
@@ -25,7 +26,9 @@ export default function Preview() {
>