diff --git a/examples/chain-template/components/contract/MyContractsTab.tsx b/examples/chain-template/components/contract/MyContractsTab.tsx index fed1e693..00c8fb52 100644 --- a/examples/chain-template/components/contract/MyContractsTab.tsx +++ b/examples/chain-template/components/contract/MyContractsTab.tsx @@ -15,7 +15,7 @@ const ContentViews = { type ContentView = (typeof ContentViews)[keyof typeof ContentViews]; -const createContractOptions = [ +const contractCreationOptions = [ { label: 'From Upload', value: ContentViews.CREATE_FROM_UPLOAD }, { label: 'From Code ID', value: ContentViews.CREATE_FROM_CODE_ID }, ]; @@ -38,9 +38,10 @@ export const MyContractsTab = ({ show, switchTab }: MyContractsTabProps) => { switchTab={switchTab} createContractTrigger={ Create New Contract} - options={createContractOptions} + trigger={} + options={contractCreationOptions} onOptionClick={(value) => setContentView(value as ContentView)} + popoverWidth="152px" /> } /> diff --git a/examples/chain-template/components/contract/PopoverSelect.tsx b/examples/chain-template/components/contract/PopoverSelect.tsx index fa4af77a..cbd6d985 100644 --- a/examples/chain-template/components/contract/PopoverSelect.tsx +++ b/examples/chain-template/components/contract/PopoverSelect.tsx @@ -20,12 +20,14 @@ type PopoverSelectProps = { trigger: React.ReactNode; options: Option[]; onOptionClick: (value: string) => void; + popoverWidth?: string; }; export const PopoverSelect = ({ trigger, options, onOptionClick, + popoverWidth = '100%', }: PopoverSelectProps) => { const [isPopoverOpen, setIsPopoverOpen] = useState(false); @@ -45,8 +47,8 @@ export const PopoverSelect = ({