mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
WIP / Features / Sate
This commit is contained in:
32
client/src/store/Invoice/invoices.reducer.js
Normal file
32
client/src/store/Invoice/invoices.reducer.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import { createReducer } from '@reduxjs/toolkit';
|
||||
import { createTableQueryReducers } from 'store/queryReducers';
|
||||
|
||||
import t from 'store/types';
|
||||
|
||||
const initialState = {
|
||||
items: {},
|
||||
views: {},
|
||||
loading: false,
|
||||
tableQuery: {
|
||||
page_size: 12,
|
||||
page: 1,
|
||||
},
|
||||
currentViewId: -1,
|
||||
};
|
||||
|
||||
const defaultInvoice = {
|
||||
entires: [],
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
const reducer = createReducer(initialState, {
|
||||
[t.INVOICE_SET]:(state,actio)=>{
|
||||
|
||||
const {id,INVOICE_SET} = action.payload;
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user