re-structure to monorepo.

This commit is contained in:
a.bouhuolia
2023-02-03 01:02:31 +02:00
parent 8242ec64ba
commit 7a0a13f9d5
10400 changed files with 46966 additions and 17223 deletions

View File

@@ -0,0 +1,9 @@
// @ts-nocheck
import t from '@/store/types';
export const setExchangeRateTableState = (queries) => {
return {
type: t.EXCHANGE_RATES_TABLE_STATE_SET,
payload: { queries },
};
};

View File

@@ -0,0 +1,14 @@
// @ts-nocheck
import { createReducer } from '@reduxjs/toolkit';
import { createTableStateReducers } from '@/store/tableState.reducer';
const initialState = {
tableState: {
pageSize: 20,
pageIndex: 0,
},
};
export default createReducer(initialState, {
...createTableStateReducers('EXCHANGE_RATES'),
});

View File

@@ -0,0 +1,19 @@
// @ts-nocheck
import { createDeepEqualSelector } from '@/utils';
import { paginationLocationQuery } from '@/store/selectors';
const exchangeRateTableState = (state) => {
return state.exchangeRates.tableState;
};
export const getExchangeRatesTableStateFactory = () =>
createDeepEqualSelector(
paginationLocationQuery,
exchangeRateTableState,
(locationQuery, tableState) => {
return {
...locationQuery,
...tableState,
};
},
);

View File

@@ -0,0 +1,4 @@
// @ts-nocheck
export default {
EXCHANGE_RATES_TABLE_STATE_SET: 'EXCHANGE_RATES/TABLE_STATE_SET',
};