File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
apps/dashboard/src/components/contract-components/contract-deploy-form Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 11"use client" ;
2-
3- import { Spinner } from "@/components/ui/Spinner/Spinner" ;
42import { Alert , AlertTitle } from "@/components/ui/alert" ;
53import { Button } from "@/components/ui/button" ;
64import { Checkbox , CheckboxWithLabel } from "@/components/ui/checkbox" ;
@@ -765,18 +763,13 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
765763 ) ;
766764 } ) }
767765
768- { isModular &&
769- ( modules ?. length ? (
770- < ModularContractDefaultModulesFieldset
771- form = { form }
772- modules = { modules }
773- isTWPublisher = { isTWPublisher }
774- />
775- ) : (
776- < div className = "flex min-h-[250px] items-center justify-center" >
777- < Spinner className = "size-8" />
778- </ div >
779- ) ) }
766+ { isModular && modules && modules . length > 0 && (
767+ < ModularContractDefaultModulesFieldset
768+ form = { form }
769+ modules = { modules }
770+ isTWPublisher = { isTWPublisher }
771+ />
772+ ) }
780773
781774 { advancedParams . length > 0 && (
782775 < Accordion allowToggle >
You can’t perform that action at this time.
0 commit comments