File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ import { observer } from 'mobx-react';
44import { site } from 'hn-react' ;
55import composeLookUp from '../LookUp' ;
66import Fieldset from '../Fieldset' ;
7+ // styled
8+ import FieldsetFormRow from '../Fieldset/styled/wrapper' ;
79
810@observer
911class Address extends Component {
1012 static meta = {
11- wrapper : Fieldset . meta . wrapper ,
13+ wrapper : FieldsetFormRow ,
1214 label : Fieldset . meta . label ,
1315 wrapperProps : Fieldset . meta . wrapperProps ,
1416 labelVisibility : Fieldset . meta . labelVisibility ,
@@ -73,7 +75,7 @@ class Address extends Component {
7375 } ,
7476 } ;
7577
76- this . lookUpBase = `${ site . url } /postcode-api/address?_format=json` ;
78+ this . lookUpBase = `${ site . url } /drupal/ postcode-api/address?_format=json` ;
7779 }
7880
7981 prepareLookUp ( fields ) {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class EmailField extends Component {
6161 shouldValidate : ( ) => field . isBlurred && ! field . isEmpty && validator . isEmail ( field . value ) ,
6262 } ) ;
6363
64- this . lookUpBase = `${ site . url } /neverbounce/validate-single?_format=json` ;
64+ this . lookUpBase = `${ site . url } /drupal/ neverbounce/validate-single?_format=json` ;
6565 }
6666
6767 prepareLookUp ( fields ) {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class Relation extends Component {
5757 } ,
5858 } ;
5959
60- this . lookUpBase = `${ site . url } /salesforce-lookup/contact?_format=json` ;
60+ this . lookUpBase = `${ site . url } /drupal/ salesforce-lookup/contact?_format=json` ;
6161
6262 const field = props . formStore . getField ( props . field [ '#webform_key' ] ) ;
6363
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ class Webform extends Component {
214214 if ( ! extraFields . in_draft ) {
215215 this . setState ( { status : Webform . formStates . PENDING } ) ;
216216 }
217- return fetch ( `${ site . url } /hn-webform-submission?_format=json` , {
217+ return fetch ( `${ site . url } /drupal/ hn-webform-submission?_format=json` , {
218218 headers,
219219 method : 'POST' ,
220220 body : JSON . stringify ( Object . assign ( {
You can’t perform that action at this time.
0 commit comments