joshgeller / react-redux-jwt-auth-example

Sample project showing possible authentication flow using React, Redux, React-Router, and JWT
MIT License
1.58k stars 237 forks source link

code format. #44

Open lubegasimon opened 5 years ago

lubegasimon commented 5 years ago

https://github.com/joshgeller/react-redux-jwt-auth-example/blob/8e1e58f2250996aa991ff1149c4460fe2e30a6d9/src/actions/index.js#L2 i think formatting it this way could be better, for readability

import {
  LOGIN_USER_REQUEST,
  LOGIN_USER_FAILURE,
  LOGIN_USER_SUCCESS,
  LOGOUT_USER,
  FETCH_PROTECTED_DATA_REQUEST,
  RECEIVE_PROTECTED_DATA
} from '../constants';