Skip to content

Commit 1f4bc35

Browse files
author
NaomiFPassarelli
committed
remove unnecessary divs
1 parent a4e05c8 commit 1f4bc35

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

generators/app/templates/src/app/index.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
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

88
class 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

generators/app/templates/src/app/screens/Dashboard/index.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
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

99
function 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

0 commit comments

Comments
 (0)