feat(prettier): Use prettier for client code
This commit is contained in:
@@ -7,10 +7,7 @@ import rootSaga from './rootSaga';
|
||||
const sagaMiddleware = createSagaMiddleware();
|
||||
|
||||
export const createStore = () => {
|
||||
const store = reduxCreateStore(
|
||||
rootReducer,
|
||||
applyMiddleware(sagaMiddleware)
|
||||
);
|
||||
const store = reduxCreateStore(rootReducer, applyMiddleware(sagaMiddleware));
|
||||
sagaMiddleware.run(rootSaga);
|
||||
return store;
|
||||
};
|
||||
|
@@ -7,10 +7,7 @@ function* fetchSessionUser() {
|
||||
console.log('fetchSessionUser');
|
||||
try {
|
||||
const {
|
||||
data: {
|
||||
user = {},
|
||||
result = ''
|
||||
}
|
||||
data: { user = {}, result = '' }
|
||||
} = yield call(getSessionUser);
|
||||
const appUser = user[result];
|
||||
yield put(fetchUserComplete({ user: appUser, username: result }));
|
||||
|
@@ -3,7 +3,5 @@ import { all } from 'redux-saga/effects';
|
||||
import { sagas as appSagas } from './';
|
||||
|
||||
export default function* rootSaga() {
|
||||
yield all([
|
||||
...appSagas
|
||||
]);
|
||||
yield all([...appSagas]);
|
||||
}
|
||||
|
@@ -17,7 +17,5 @@ function* updateMyEmailSaga({ payload: newEmail }) {
|
||||
}
|
||||
|
||||
export function createUpdateMyEmailSaga(types) {
|
||||
return [
|
||||
takeEvery(types.updateMyEmail, updateMyEmailSaga)
|
||||
];
|
||||
return [takeEvery(types.updateMyEmail, updateMyEmailSaga)];
|
||||
}
|
||||
|
Reference in New Issue
Block a user