mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 17:25:11 +02:00
* replace spaces for underscores in edit custom fields * Create function getCustomFieldParamName * Improved the render in MainSignUpWidget
This commit is contained in:
parent
843bd13281
commit
38c6295a7b
@ -26,7 +26,7 @@ class MainSignUpWidget extends React.Component {
|
|||||||
this.state = {
|
this.state = {
|
||||||
loading: false,
|
loading: false,
|
||||||
email: null,
|
email: null,
|
||||||
customFields: []
|
customFields: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,6 +39,7 @@ class MainSignUpWidget extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
if(!this.state.customFields) return null;
|
||||||
return (
|
return (
|
||||||
<Widget className={this.getClass()}>
|
<Widget className={this.getClass()}>
|
||||||
<Header title={i18n('SIGN_UP')} description={i18n('SIGN_UP_VIEW_DESCRIPTION')} />
|
<Header title={i18n('SIGN_UP')} description={i18n('SIGN_UP_VIEW_DESCRIPTION')} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user