mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
WIP / Feature Fix _bills
This commit is contained in:
6
client/src/store/Bills/bills.selectors.js
Normal file
6
client/src/store/Bills/bills.selectors.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { createSelector } from '@reduxjs/toolkit';
|
||||
|
||||
const billByIdSelector = (state, props) => state.bills.items[props.billId];
|
||||
|
||||
export const getBillById = () =>
|
||||
createSelector(billByIdSelector, (_bill) => _bill);
|
||||
Reference in New Issue
Block a user