From c942d5dabc7d05c09637afdbcbfd9aec327b7bc5 Mon Sep 17 00:00:00 2001 From: vikash <120444720+vikashmurugesh@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:49:22 +0530 Subject: [PATCH] Update app.js Describe the bug A clear and concise description of what the bug is. To Reproduce Steps to reproduce the behavior: Go to '...' Click on '....' Scroll down to '....' See error Expected behavior A clear and concise description of what you expected to happen. --- client/app/app.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/app/app.js b/client/app/app.js index 8c54657b..f2d46aaf 100644 --- a/client/app/app.js +++ b/client/app/app.js @@ -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 @@ -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 = () => ( @@ -53,4 +54,4 @@ const app = () => ( ); -export default app; +export default App;