@@ -9,7 +9,7 @@ import { ThirdwebProvider, useContract } from "@thirdweb-dev/react";
9
9
import { ThirdwebStorage } from "@thirdweb-dev/storage" ;
10
10
import React , { useEffect } from "react" ;
11
11
import { createRoot } from "react-dom/client" ;
12
- import { Body } from "src /shared/body" ;
12
+ import { Body } from ".. /shared/body" ;
13
13
import { ERC721ClaimButton } from "../shared/claim-button-erc721" ;
14
14
import { ContractMetadataPage } from "../shared/contract-metadata-page" ;
15
15
import { Footer } from "../shared/footer" ;
@@ -19,19 +19,19 @@ import chakraTheme from "../shared/theme";
19
19
import { fontsizeCss } from "../shared/theme/typography" ;
20
20
import { parseIpfsGateway } from "../utils/parseIpfsGateway" ;
21
21
22
- interface SignatureDropEmbedProps {
22
+ interface Erc721EmbedProps {
23
23
contractAddress : string ;
24
24
colorScheme : ColorMode ;
25
25
primaryColor : string ;
26
26
}
27
27
28
- const SignatureDropEmbed : React . FC < SignatureDropEmbedProps > = ( {
28
+ const Erc721Embed : React . FC < Erc721EmbedProps > = ( {
29
29
contractAddress,
30
30
colorScheme,
31
31
primaryColor,
32
32
} ) => {
33
33
const { setColorMode } = useColorMode ( ) ;
34
- const { contract : sigDrop } = useContract ( contractAddress , "signature-drop" ) ;
34
+ const { contract } = useContract ( contractAddress ) ;
35
35
36
36
useEffect ( ( ) => {
37
37
setColorMode ( colorScheme ) ;
@@ -54,9 +54,9 @@ const SignatureDropEmbed: React.FC<SignatureDropEmbedProps> = ({
54
54
>
55
55
< Header primaryColor = { primaryColor } colorScheme = { colorScheme } />
56
56
< Body >
57
- < ContractMetadataPage contract = { sigDrop } >
57
+ < ContractMetadataPage contract = { contract } >
58
58
< ERC721ClaimButton
59
- contract = { sigDrop }
59
+ contract = { contract }
60
60
colorScheme = { colorScheme }
61
61
primaryColor = { primaryColor }
62
62
/>
@@ -76,6 +76,7 @@ const App: React.FC = () => {
76
76
const relayerUrl = urlParams . get ( "relayUrl" ) || "" ;
77
77
const biconomyApiKey = urlParams . get ( "biconomyApiKey" ) || "" ;
78
78
const biconomyApiId = urlParams . get ( "biconomyApiId" ) || "" ;
79
+
79
80
const colorScheme = urlParams . get ( "theme" ) === "dark" ? "dark" : "light" ;
80
81
const primaryColor = urlParams . get ( "primaryColor" ) || "purple" ;
81
82
@@ -108,7 +109,7 @@ const App: React.FC = () => {
108
109
}
109
110
chainRpc = { rpcUrl ? { [ chainId ] : rpcUrl } : undefined }
110
111
>
111
- < SignatureDropEmbed
112
+ < Erc721Embed
112
113
contractAddress = { contractAddress }
113
114
colorScheme = { colorScheme }
114
115
primaryColor = { primaryColor }
0 commit comments