mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Use new <FormBuilderLoader> react API
See https://github.com/silverstripe/silverstripe-framework/issues/5524
This commit is contained in:
parent
a0099fb03f
commit
2c72749af9
2
client/dist/legacy.js
vendored
2
client/dist/legacy.js
vendored
@ -11,4 +11,4 @@ setTimeout(function(){return t._renderForm()},100),this[0].style.setProperty("ov
|
|||||||
a["default"].render(c["default"].createElement(l.Provider,{store:e},c["default"].createElement(d["default"],{schemaUrl:r,handleSubmit:function o(){return t._handleSubmit.apply(t,arguments)}})),this[0])
|
a["default"].render(c["default"].createElement(l.Provider,{store:e},c["default"].createElement(d["default"],{schemaUrl:r,handleSubmit:function o(){return t._handleSubmit.apply(t,arguments)}})),this[0])
|
||||||
|
|
||||||
},_clearForm:function u(){a["default"].unmountComponentAtNode(this[0])},_handleSubmit:function s(t,e,n){return t.preventDefault(),n()}}),t(".TestReactFormBuilder .nav-link").entwine({onclick:function f(t){
|
},_clearForm:function u(){a["default"].unmountComponentAtNode(this[0])},_handleSubmit:function s(t,e,n){return t.preventDefault(),n()}}),t(".TestReactFormBuilder .nav-link").entwine({onclick:function f(t){
|
||||||
t.preventDefault()}})})},function(t,e){t.exports=jQuery},function(t,e){t.exports=React},function(t,e){t.exports=ReactDom},function(t,e){t.exports=ReactRedux},function(t,e){t.exports=FormBuilder}])
|
t.preventDefault()}})})},function(t,e){t.exports=jQuery},function(t,e){t.exports=React},function(t,e){t.exports=ReactDom},function(t,e){t.exports=ReactRedux},function(t,e){t.exports=FormBuilderLoader}])
|
||||||
|
@ -2,7 +2,7 @@ import jQuery from 'jQuery';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import FormBuilder from 'components/FormBuilder/FormBuilder';
|
import FormBuilderLoader from 'containers/FormBuilderLoader/FormBuilderLoader';
|
||||||
|
|
||||||
jQuery.entwine('ss', ($) => {
|
jQuery.entwine('ss', ($) => {
|
||||||
/**
|
/**
|
||||||
@ -37,7 +37,7 @@ jQuery.entwine('ss', ($) => {
|
|||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<FormBuilder
|
<FormBuilderLoader
|
||||||
schemaUrl={schemaUrl}
|
schemaUrl={schemaUrl}
|
||||||
handleSubmit={(...args) => this._handleSubmit(...args)}
|
handleSubmit={(...args) => this._handleSubmit(...args)}
|
||||||
/>
|
/>
|
||||||
|
@ -43,6 +43,7 @@ const config = {
|
|||||||
'components/FormBuilderModal/FormBuilderModal': 'FormBuilderModal',
|
'components/FormBuilderModal/FormBuilderModal': 'FormBuilderModal',
|
||||||
'components/FormBuilder/FormBuilder': 'FormBuilder',
|
'components/FormBuilder/FormBuilder': 'FormBuilder',
|
||||||
'components/Toolbar/Toolbar': 'Toolbar',
|
'components/Toolbar/Toolbar': 'Toolbar',
|
||||||
|
'containers/FormBuilderLoader/FormBuilderLoader': 'FormBuilderLoader',
|
||||||
'state/breadcrumbs/BreadcrumbsActions': 'BreadcrumbsActions',
|
'state/breadcrumbs/BreadcrumbsActions': 'BreadcrumbsActions',
|
||||||
'deep-freeze-strict': 'DeepFreezeStrict',
|
'deep-freeze-strict': 'DeepFreezeStrict',
|
||||||
i18n: 'i18n',
|
i18n: 'i18n',
|
||||||
|
Loading…
Reference in New Issue
Block a user