From 9f5da61dfb56f4813544e8bfdfb2cfeced19ea7a Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 16 Dec 2017 17:46:00 +0000 Subject: [PATCH] Remove the hack we used for React.Fragment. --- src/LoginForm.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/LoginForm.tsx b/src/LoginForm.tsx index 0ea1710..ae1e426 100644 --- a/src/LoginForm.tsx +++ b/src/LoginForm.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -const Fragment = (React as any).Fragment; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; @@ -98,7 +97,7 @@ class LoginForm extends React.PureComponent { let advancedSettings = null; if (this.state.showAdvanced) { advancedSettings = ( - +
-
+ ); } @@ -129,7 +128,7 @@ class LoginForm extends React.PureComponent { }; return ( - + {(this.props.error) && (
Error! {this.props.error.message}
)}
-
+ ); } }