Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update app.js #250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions client/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import 'font-awesome/css/font-awesome.min.css';
// Import Simple Line Icons Set
import 'simple-line-icons/css/simple-line-icons.css';

// react-bootstrap-table2 styles
// React-Bootstrap Table styles
import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';

// rc-slider style
Expand All @@ -34,14 +34,15 @@ import 'rc-slider/assets/index.css';
const token = localStorage.getItem('token');

if (token) {
// authenticate api authorization
// Authenticate API authorization
setToken(token);

// authenticate routes
// Dispatch authentication action
store.dispatch({ type: SET_AUTH });
}

const app = () => (
// Main App Component
const App = () => (
<Provider store={store}>
<ConnectedRouter history={history}>
<SocketProvider>
Expand All @@ -53,4 +54,4 @@ const app = () => (
</Provider>
);

export default app;
export default App;