Rocket.Chat.ReactNative/app/reducers/server.js

11 lines
208 B
JavaScript
Raw Normal View History

import { SERVER } from '../actions/actionsTypes';
export default function server(state = '', action) {
switch (action.type) {
case SERVER.SELECT:
return action.server;
default:
return state;
}
}