From f01957203f77fce8b65d5e034a8acd68f1e0ae2e Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 9 Dec 2018 01:01:12 +0100 Subject: Upgrade to react 16 TODO: add componentDidCatch --- src/components/auth/AuthLayout.js | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'src/components/auth/AuthLayout.js') diff --git a/src/components/auth/AuthLayout.js b/src/components/auth/AuthLayout.js index 4fb0e6a59..4e1b0c52e 100644 --- a/src/components/auth/AuthLayout.js +++ b/src/components/auth/AuthLayout.js @@ -1,7 +1,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; -import { RouteTransition } from 'react-router-transition'; import { intlShape } from 'react-intl'; import { TitleBar } from 'electron-react-titlebar'; @@ -69,22 +68,10 @@ export default @observer class AuthLayout extends Component { )}
- ({ - transform: `translateX(${styles.translateX}%)`, - opacity: styles.opacity, - })} - component="span" - > - {/* Inject globalError into children */} - {React.cloneElement(children, { - error, - })} - + {/* Inject globalError into children */} + {React.cloneElement(children, { + error, + })}
{/* */} -- cgit v1.2.3-70-g09d2