1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added boris reducer

This commit is contained in:
Fedor Katurov 2020-06-08 11:38:03 +07:00
parent 381c2fecda
commit 6595adcccd
4 changed files with 52 additions and 22 deletions

View file

@ -0,0 +1,22 @@
import { createReducer } from '~/utils/reducer';
import { BORIS_HANDLERS } from './handlers';
export type IStatGitRow = {
commit: string;
subject: string;
timestamp: string;
};
export type IBorisState = Readonly<{
stats: {
git: IStatGitRow[];
};
}>;
const BORIS_INITIAL_STATE: IBorisState = {
stats: {
git: [],
},
};
export default createReducer(BORIS_INITIAL_STATE, BORIS_HANDLERS);