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:
parent
381c2fecda
commit
6595adcccd
4 changed files with 52 additions and 22 deletions
22
src/redux/boris/reducer.ts
Normal file
22
src/redux/boris/reducer.ts
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue