mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat(webapp): invoice tax rate
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// @ts-nocheck
|
||||
import React, { createContext } from 'react';
|
||||
|
||||
const ItemEntriesTableContext = createContext();
|
||||
|
||||
function ItemEntriesTableProvider({ children, value }) {
|
||||
const provider = {
|
||||
...value,
|
||||
};
|
||||
return (
|
||||
<ItemEntriesTableContext.Provider value={provider}>
|
||||
{children}
|
||||
</ItemEntriesTableContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
const useItemEntriesTableContext = () =>
|
||||
React.useContext(ItemEntriesTableContext);
|
||||
|
||||
export { ItemEntriesTableProvider, useItemEntriesTableContext };
|
||||
Reference in New Issue
Block a user