mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat(invoice): fix invoice currency tag.
This commit is contained in:
18
src/components/BaseCurrency.js
Normal file
18
src/components/BaseCurrency.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import * as R from 'ramda';
|
||||
import styled from 'styled-components';
|
||||
import { CurrencyTag } from 'components';
|
||||
|
||||
import withCurrentOrganization from 'containers/Organization/withCurrentOrganization';
|
||||
|
||||
/**
|
||||
* base currecncy.
|
||||
*/
|
||||
function BaseCurrency({
|
||||
// #withCurrentOrganization
|
||||
organization: { base_currency },
|
||||
}) {
|
||||
return <CurrencyTag>{base_currency}</CurrencyTag>;
|
||||
}
|
||||
|
||||
export default R.compose(withCurrentOrganization())(BaseCurrency);
|
||||
@@ -54,7 +54,8 @@ import AvaterCell from './AvaterCell';
|
||||
|
||||
import { ItemsMultiSelect } from './Items';
|
||||
import MoreMenuItems from './MoreMenutItems';
|
||||
import CustomSelectList from './CustomSelectList'
|
||||
import CustomSelectList from './CustomSelectList';
|
||||
import BaseCurrency from './BaseCurrency';
|
||||
|
||||
export * from './Dialog';
|
||||
export * from './Menu';
|
||||
@@ -89,8 +90,8 @@ export * from './TextStatus';
|
||||
export * from './Tags';
|
||||
export * from './CommercialDoc';
|
||||
export * from './Card';
|
||||
export * from './Customers'
|
||||
export * from './Vendors'
|
||||
export * from './Customers';
|
||||
export * from './Vendors';
|
||||
export * from './Table';
|
||||
export * from './Skeleton';
|
||||
export * from './FinancialStatement';
|
||||
@@ -162,6 +163,8 @@ export {
|
||||
MoneyFieldCell,
|
||||
ItemsMultiSelect,
|
||||
AvaterCell,
|
||||
BaseCurrency,
|
||||
MoreMenuItems,
|
||||
CustomSelectList
|
||||
CustomSelectList,
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user