1- import React , { useState } from 'react' ;
2- import { toast } from 'react-toastify' ;
1+ import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal' ;
32import Toast from '@plone/volto/components/manage/Toast/Toast' ;
4-
5- import { defineMessages } from 'react-intl' ;
63import Icon from '@plone/volto/components/theme/Icon/Icon' ;
7- import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal' ;
8- import clearSVG from '@plone/volto/icons/clear.svg' ;
94import aheadSVG from '@plone/volto/icons/ahead.svg' ;
105import applicationSVG from '@plone/volto/icons/application.svg' ;
11- import IframeView from './View' ;
12- import IframeSidebar from './Data' ;
13- import { isValidUrl } from './schema' ;
6+ import clearSVG from '@plone/volto/icons/clear.svg' ;
7+ import React , { useState } from 'react' ;
8+ import { defineMessages } from 'react-intl' ;
9+ import { toast } from 'react-toastify' ;
10+
11+ import { isValidUrl } from '@kitconcept/volto-iframe-block/helpers/isValidUrl' ;
12+ import IframeSidebar from '@kitconcept/volto-iframe-block/components/Data' ;
13+ import IframeView from '@kitconcept/volto-iframe-block/components/View' ;
1414
1515const messages = defineMessages ( {
1616 InputPlaceholder : {
@@ -84,6 +84,7 @@ const IframeEdit = (props) => {
8484 { url && (
8585 < div >
8686 < button
87+ type = "button"
8788 className = "cancel"
8889 onClick = { ( e ) => {
8990 e . stopPropagation ( ) ;
@@ -96,6 +97,7 @@ const IframeEdit = (props) => {
9697 ) }
9798 < div >
9899 < button
100+ type = "button"
99101 disabled = { ! url }
100102 onClick = { ( e ) => {
101103 e . stopPropagation ( ) ;
@@ -116,7 +118,7 @@ const IframeEdit = (props) => {
116118 ) }
117119
118120 < SidebarPortal selected = { props . selected } >
119- < IframeSidebar { ...props } />
121+ < IframeSidebar { ...props } resetSubmitUrl = { resetSubmitUrl } />
120122 </ SidebarPortal >
121123 </ div >
122124 ) ;
0 commit comments