Skip to content

Commit 1ece8b3

Browse files
author
jonatansalas
committed
Major updates in all the components
1 parent e144797 commit 1ece8b3

34 files changed

+8718
-667
lines changed

demo/client/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
2-
import {Router} from 'react-router'
2+
import { Router } from 'react-router'
33
import routes from '../shared/routes/Routes';
44
import configureStore from '../shared/redux/store/Store';
5-
import {Provider} from 'react-redux';
6-
import {syncHistoryWithStore} from 'react-router-redux';
7-
import {browserHistory} from 'react-router'
5+
import { Provider } from 'react-redux';
6+
import { syncHistoryWithStore } from 'react-router-redux';
7+
import { browserHistory } from 'react-router'
88
import ReactDOM from 'react-dom';
99
import injectTapEventPlugin from 'react-tap-event-plugin';
1010
import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
@@ -29,7 +29,7 @@ const history = syncHistoryWithStore(browserHistory, store);
2929
ReactDOM.render(
3030
<Provider store={store}>
3131
<MuiThemeProvider muiTheme={getMuiTheme(lightBaseTheme)}>
32-
<Router history={history} routes={routes}/>
32+
<Router history={history} routes={routes} />
3333
</MuiThemeProvider>
3434
</Provider>,
3535
document.getElementById('app')

demo/server/Server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Server {
2323
}
2424
});
2525

26-
return multer({storage});
26+
return multer({ storage });
2727
}
2828

2929
static init() {
@@ -38,12 +38,12 @@ class Server {
3838

3939
router.post("/upload", (request, response) => {
4040
upload.array("fileData")(request, response, (err) => {
41-
if(err) {
42-
response.json({status: false, message: "There was an error while uploading files."});
41+
if (err) {
42+
response.json({ status: false, message: "There was an error while uploading files." });
4343
return;
4444
}
4545

46-
response.json({status: true, message: "Files correctly uploaded."});
46+
response.json({ status: true, message: "Files correctly uploaded." });
4747
})
4848
});
4949

0 commit comments

Comments
 (0)