Skip to content

Commit

Permalink
exports at end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesbrandenburger committed Dec 9, 2022
1 parent d64733e commit 4883459
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
import routes from '../js/routes';
import store from '../js/store';

export default class MyApp extends React.Component {
class MyApp extends React.Component {

f7params = {
name: 'Know Where You Go', // App name
Expand Down Expand Up @@ -65,4 +65,6 @@ export default class MyApp extends React.Component {
</App>
)
}
}
}

export default MyApp;
4 changes: 2 additions & 2 deletions src/js/routes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

import HomePage from '../pages/home.jsx';
import Home from '../pages/home.jsx';

var routes = [
{
path: '/',
component: HomePage,
component: Home,
},
];

Expand Down
4 changes: 3 additions & 1 deletion src/pages/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
Button
} from 'framework7-react';

export default class HomePage extends React.Component {
class Home extends React.Component {

render() {
return (
Expand All @@ -38,3 +38,5 @@ export default class HomePage extends React.Component {
)
}
}

export default Home;

0 comments on commit 4883459

Please sign in to comment.