mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
16 lines
282 B
JavaScript
16 lines
282 B
JavaScript
import {combineReducers} from 'redux'
|
|
|
|
const initialCurrentUser = JSON.parse(localStorage.getItem('currentUser'))
|
|
|
|
function currentUser (state, action) {
|
|
switch (action.type) {
|
|
|
|
default:
|
|
return initialCurrentUser
|
|
}
|
|
}
|
|
|
|
export default combineReducers({
|
|
currentUser
|
|
})
|