File tree Expand file tree Collapse file tree 2 files changed +14
-20
lines changed
generators/app/templates/src/app Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 1- import React , { Component } from " react" ;
2- import { connect } from " react-redux" ;
1+ import React , { Component } from ' react' ;
2+ import { connect } from ' react-redux' ;
33
4- import { apiSetup } from " ../config/api" ;
4+ import { apiSetup } from ' ../config/api' ;
55
6- import Routes from " ./components/Routes" ;
6+ import Routes from ' ./components/Routes' ;
77
88class App extends Component {
99 componentDidMount ( ) {
1010 apiSetup ( this . props . dispatch ) ;
1111 }
1212
1313 render ( ) {
14- return (
15- < div >
16- < Routes />
17- </ div >
18- ) ;
14+ return < Routes /> ;
1915 }
2016}
2117
Original file line number Diff line number Diff line change 1- import React from " react" ;
2- import { connect } from " react-redux" ;
3- import { Route , Switch , Redirect } from " react-router-dom" ;
1+ import React from ' react' ;
2+ import { connect } from ' react-redux' ;
3+ import { Route , Switch , Redirect } from ' react-router-dom' ;
44
5- import * as Routes from " ../../components/Routes/constants" ;
5+ import * as Routes from ' ../../components/Routes/constants' ;
66
7- import Home from " ./screens/Home" ;
7+ import Home from ' ./screens/Home' ;
88
99function Dashboard ( ) {
1010 return (
11- < div >
12- < Switch >
13- < Route exact path = { Routes . HOME } component = { Home } />
14- < Route render = { ( ) => < Redirect to = { Routes . HOME } /> } />
15- </ Switch >
16- </ div >
11+ < Switch >
12+ < Route exact path = { Routes . HOME } component = { Home } />
13+ < Route render = { ( ) => < Redirect to = { Routes . HOME } /> } />
14+ </ Switch >
1715 ) ;
1816}
1917
You can’t perform that action at this time.
0 commit comments