Implemented loading of short URLs

This commit is contained in:
Alejandro Celaya
2018-06-15 21:49:25 +02:00
parent e4356720d7
commit c0203f1336
16 changed files with 191 additions and 33 deletions

View File

@@ -1,14 +1,13 @@
import ServersService from '../services';
const LOAD_SERVER = 'shlink/LOAD_SERVER';
import { LOAD_SERVER } from '../../reducers/types';
export default function selectedServerReducer(state = null, action) {
switch (action.type) {
case LOAD_SERVER:
return action.selectedServer;
default:
return state;
}
return state;
}
export const loadServer = serverId => {