mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: apply new cards design system.
feat: empty status datatables. fix: edit account.
This commit is contained in:
10
client/src/containers/Items/utils.js
Normal file
10
client/src/containers/Items/utils.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { formatMessage } from "services/intl";
|
||||
|
||||
export const transitionItemTypeKeyToLabel = (itemTypeKey) => {
|
||||
const table = {
|
||||
'service': formatMessage({ id: 'service' }),
|
||||
'inventory': formatMessage({ id: 'inventory' }),
|
||||
'non-inventory': formatMessage({ id: 'non_inventory' }),
|
||||
};
|
||||
return typeof table[itemTypeKey] === 'string' ? table[itemTypeKey] : '';
|
||||
};
|
||||
Reference in New Issue
Block a user