fix(web): Fix metadata modal component (#19573)

- Add the onBack property to the CreateMetadataModal component
- Add the onClose property to the SelectMetadataModal component
pull/19592/head
zhujiruo 1 year ago
parent 65e9f6651c
commit 4bd97d5af3

@ -36,7 +36,7 @@ const CreateMetadataModal: FC<Props> = ({
{trigger}
</PortalToFollowElemTrigger>
<PortalToFollowElemContent className='z-[1000]'>
<CreateContent {...createContentProps} onClose={() => setOpen(false)} />
<CreateContent {...createContentProps} onClose={() => setOpen(false)} onBack={() => setOpen(false)} />
</PortalToFollowElemContent>
</PortalToFollowElem >

@ -71,6 +71,7 @@ const SelectMetadataModal: FC<Props> = ({
onSave={handleSave}
hasBack
onBack={() => setStep(Step.select)}
onClose={() => setStep(Step.select)}
/>
)}
</PortalToFollowElemContent>

Loading…
Cancel
Save