Remove the hack we used for React.Fragment.

master
Tom Hacohen 7 years ago
parent 6a586ac38f
commit 9f5da61dfb

@ -1,5 +1,4 @@
import * as React from 'react'; import * as React from 'react';
const Fragment = (React as any).Fragment;
import RaisedButton from 'material-ui/RaisedButton'; import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField'; import TextField from 'material-ui/TextField';
import Toggle from 'material-ui/Toggle'; import Toggle from 'material-ui/Toggle';
@ -98,7 +97,7 @@ class LoginForm extends React.PureComponent {
let advancedSettings = null; let advancedSettings = null;
if (this.state.showAdvanced) { if (this.state.showAdvanced) {
advancedSettings = ( advancedSettings = (
<Fragment> <React.Fragment>
<TextField <TextField
type="url" type="url"
errorText={this.state.errors.errorServer} errorText={this.state.errors.errorServer}
@ -108,7 +107,7 @@ class LoginForm extends React.PureComponent {
onChange={this.handleInputChange} onChange={this.handleInputChange}
/> />
<br /> <br />
</Fragment> </React.Fragment>
); );
} }
@ -129,7 +128,7 @@ class LoginForm extends React.PureComponent {
}; };
return ( return (
<Fragment> <React.Fragment>
{(this.props.error) && (<div>Error! {this.props.error.message}</div>)} {(this.props.error) && (<div>Error! {this.props.error.message}</div>)}
<form style={styles.form} onSubmit={this.generateEncryption}> <form style={styles.form} onSubmit={this.generateEncryption}>
<TextField <TextField
@ -176,7 +175,7 @@ class LoginForm extends React.PureComponent {
/> />
</div> </div>
</form> </form>
</Fragment> </React.Fragment>
); );
} }
} }

Loading…
Cancel
Save