Skip to content

Commit eb8281a

Browse files
committed
Remove <Main> component and just use App
1 parent 00a0881 commit eb8281a

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

common/js/components/Main.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

common/js/containers/App/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import React from 'react';
2-
import Main from 'components/Main';
2+
import { Switch, Route } from 'react-router-dom';
3+
import { Container } from 'semantic-ui-react';
34
import Header from 'components/Header';
45
import Footer from 'components/Footer';
6+
import routes from 'routes';
57

68
const App = () => (
7-
<div>
9+
<Container fluid={false}>
810
<Header />
9-
<Main />
11+
<Switch>
12+
{routes.map(route => <Route key={route.path} {...route} />)}
13+
</Switch>
1014
<Footer />
11-
</div>
15+
</Container>
1216
);
1317

1418
export default App;

0 commit comments

Comments
 (0)