Album view

This commit is contained in:
James Barnsley
2016-10-31 09:25:15 +13:00
parent c1cbcddef6
commit 869d73231b
38 changed files with 6467 additions and 5656 deletions

View File

@ -3,10 +3,10 @@
* Actions and Action Creators
**/
export function setConfig( config ){
export function setPort( port ){
return {
type: 'PUSHER_SET_CONFIG',
config: config
type: 'PUSHER_SET_PORT',
port: port
}
}

View File

@ -13,10 +13,8 @@ export default function reducer(pusher = {}, action){
case 'PUSHER_DISCONNECTED':
return Object.assign({}, pusher, { connected: false, connecting: false });
case 'PUSHER_SET_CONFIG':
return Object.assign({}, pusher, {
port: action.port
});
case 'PUSHER_SET_PORT':
return Object.assign({}, pusher, { port: action.port });
case 'PUSHER_CHANGE_USERNAME':
return Object.assign({}, pusher, { username: action.data.connection.username });