Drop unused react-transitions

This commit is contained in:
Tom Russell 2019-01-22 18:39:14 +00:00
parent b11534f094
commit 544f929fcd
2 changed files with 34 additions and 40 deletions

View File

@ -30,7 +30,6 @@
"react-leaflet": "^1.0.1", "react-leaflet": "^1.0.1",
"react-leaflet-universal": "^1.2.0", "react-leaflet-universal": "^1.2.0",
"react-router-dom": "^4.3.1", "react-router-dom": "^4.3.1",
"react-transition-group": "^2.5.0",
"serialize-javascript": "^1.5.0" "serialize-javascript": "^1.5.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -1,6 +1,5 @@
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { Route, Switch, Link } from 'react-router-dom'; import { Route, Switch, Link } from 'react-router-dom';
import { TransitionGroup, CSSTransition } from 'react-transition-group'
import '../../node_modules/bootstrap/dist/css/bootstrap.min.css'; import '../../node_modules/bootstrap/dist/css/bootstrap.min.css';
import './app.css'; import './app.css';
@ -97,8 +96,6 @@ class App extends React.Component {
<Fragment> <Fragment>
<Header user={this.state.user} /> <Header user={this.state.user} />
<main> <main>
<TransitionGroup>
<CSSTransition timeout={3000} classNames='fade'>
<Switch> <Switch>
<Route exact path="/"> <Route exact path="/">
<Welcome /> <Welcome />
@ -133,8 +130,6 @@ class App extends React.Component {
/> />
) } /> ) } />
</Switch> </Switch>
</CSSTransition>
</TransitionGroup>
<Switch> <Switch>
<Route exact path="/(edit.*|view.*)?" render={(props) => ( <Route exact path="/(edit.*|view.*)?" render={(props) => (
<ColouringMap <ColouringMap