@@ -55,7 +55,7 @@ interface MarketplaceEmbedProps {
55
55
rpcUrl ?: string ;
56
56
contractAddress : string ;
57
57
listingId : string ;
58
- colorScheme : ColorMode ;
58
+ colorScheme : "light" | "dark" ;
59
59
primaryColor : string ;
60
60
secondaryColor : string ;
61
61
}
@@ -66,7 +66,7 @@ interface BuyPageProps {
66
66
isLoading ?: boolean ;
67
67
primaryColor : string ;
68
68
secondaryColor : string ;
69
- colorScheme : ColorMode ;
69
+ colorScheme : "light" | "dark" ;
70
70
}
71
71
72
72
interface AuctionListingProps extends BuyPageProps {
@@ -212,8 +212,10 @@ const AuctionListingComponent: React.FC<AuctionListingProps> = ({
212
212
< LightMode >
213
213
< Web3Button
214
214
contractAddress = { contract ?. getAddress ( ) || "" }
215
- accentColor = { accentColor }
216
- colorMode = { colorScheme }
215
+ style = { {
216
+ backgroundColor : accentColor ,
217
+ } }
218
+ theme = { colorScheme }
217
219
isDisabled = {
218
220
parseFloat ( bid ) <
219
221
parseFloat ( valuesFormatted . mimimumBidNumber . toString ( ) )
@@ -259,8 +261,10 @@ const AuctionListingComponent: React.FC<AuctionListingProps> = ({
259
261
< LightMode >
260
262
< Web3Button
261
263
contractAddress = { contract ?. getAddress ( ) || "" }
262
- accentColor = { accentColor }
263
- colorMode = { colorScheme }
264
+ style = { {
265
+ backgroundColor : accentColor ,
266
+ } }
267
+ theme = { colorScheme }
264
268
action = { ( ) => contract ?. buyoutListing ( listing . id ) }
265
269
onSuccess = { ( ) => {
266
270
toast ( {
@@ -502,8 +506,10 @@ const DirectListingComponent: React.FC<DirectListingProps> = ({
502
506
< LightMode >
503
507
< Web3Button
504
508
contractAddress = { contract ?. getAddress ( ) || "" }
505
- accentColor = { accentColor }
506
- colorMode = { colorScheme }
509
+ style = { {
510
+ backgroundColor : accentColor ,
511
+ } }
512
+ theme = { colorScheme }
507
513
isDisabled = { ! canClaim }
508
514
action = { ( ) => contract ?. buyoutListing ( listing . id , quantity ) }
509
515
onSuccess = { ( ) => {
0 commit comments