Sha256: 9c14f21ddbea73d0ff82ba3ff774a4c1478bfd98ce4169dcd5c41dc0d0c83fbf

Contents?: true

Size: 391 Bytes

Versions: 3

Compression:

Stored size: 391 Bytes

Contents

import * as types from '../constants/ActionTypes'

const initialState = {
  username: 'foo',
  password: 'pass'
}

export default function(state = initialState, action) {
  switch (action.type) {
    case types.CHANGE_ACCOUNT:
      return {
        ...state,
        username: action.account.username,
        password: action.account.password
      }
    default:
      return state
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bouquet-0.2.2 store/private/static/app/reducers/account.js
bouquet-0.2.1 store/private/static/app/reducers/account.js
bouquet-0.2.0 store/private/static/app/reducers/account.js