Updates to Gab Deck

• Updates:
- to Gab Deck
This commit is contained in:
mgabdev
2020-12-08 00:07:04 -05:00
parent 05c5dcb581
commit 6950f67520
16 changed files with 210 additions and 115 deletions

View File

@@ -0,0 +1,20 @@
import {
DECK_CONNECT,
DECK_DISCONNECT,
} from '../actions/deck'
import { Map as ImmutableMap } from 'immutable'
const initialState = ImmutableMap({
connected: false,
})
export default function deck(state = initialState, action) {
switch(action.type) {
case DECK_CONNECT:
return state.set('connected', true)
case DECK_DISCONNECT:
return state.set('connected', false)
default:
return state;
}
}