File tree Expand file tree Collapse file tree 3 files changed +34
-4
lines changed
apps/dashboard/src/components/contract-components/contract-deploy-form Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import {
5555 showRoyaltyFieldset ,
5656} from "./modular-contract-default-modules-fieldset" ;
5757import { Param } from "./param" ;
58+ import { PlatformFeeFieldset } from "./platform-fee-fieldset" ;
5859import { PrimarySaleFieldset } from "./primary-sale-fieldset" ;
5960import { RoyaltyFieldset } from "./royalty-fieldset" ;
6061import { type Recipient , SplitFieldset } from "./split-fieldset" ;
@@ -192,6 +193,8 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
192193 ! isFactoryDeployment &&
193194 ( metadata ?. name . includes ( "AccountFactory" ) || false ) ;
194195
196+ const isMarketplace = metadata ?. name . includes ( "MarketplaceV3" ) || false ;
197+
195198 const parsedDeployParams = useMemo (
196199 ( ) => ( {
197200 ...deployParams . reduce (
@@ -710,6 +713,10 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
710713 />
711714 ) }
712715
716+ { hasPlatformFee && (
717+ < PlatformFeeFieldset isMarketplace = { isMarketplace } />
718+ ) }
719+
713720 { isSplit && < SplitFieldset form = { form } /> }
714721
715722 { hasTrustedForwarders && (
Original file line number Diff line number Diff line change 1+ import { Fieldset } from "./common" ;
2+
3+ interface PlatformFeeFieldsetProps {
4+ isMarketplace : boolean ;
5+ }
6+
7+ export const PlatformFeeFieldset : React . FC < PlatformFeeFieldsetProps > = (
8+ props ,
9+ ) => {
10+ return (
11+ < Fieldset legend = "Platform fees" >
12+ < div className = "flex flex-col gap-4 md:flex-row" >
13+ { props . isMarketplace ? (
14+ < p className = "mb-3 pt-4 text-muted-foreground text-sm italic" >
15+ A 2.5% platform fee is deducted from each sale to support ongoing
16+ platform operations and improvements.
17+ </ p >
18+ ) : (
19+ < p className = "mb-3 pt-4 text-muted-foreground text-sm italic" >
20+ A 2.5% platform fee is deducted from each primary sale price to
21+ support ongoing platform operations and improvements.
22+ </ p >
23+ ) }
24+ </ div >
25+ </ Fieldset >
26+ ) ;
27+ } ;
Original file line number Diff line number Diff line change @@ -27,10 +27,6 @@ export const PrimarySaleFieldset: React.FC<PrimarySaleFieldsetProps> = (
2727 >
2828 < SolidityInput solidityType = "address" { ...props . register } />
2929 </ FormFieldSetup >
30- < p className = "mb-3 pt-4 text-muted-foreground text-sm italic" >
31- A 2.5% platform fee is deducted from each primary sale price to support
32- ongoing platform operations and improvements.
33- </ p >
3430 </ Fieldset >
3531 ) ;
3632} ;
You can’t perform that action at this time.
0 commit comments