feat(invoice): fix invoice currency tag.

This commit is contained in:
elforjani13
2022-02-14 12:06:58 +02:00
parent 9f466ba4df
commit bd63e35489
5 changed files with 89 additions and 66 deletions

View 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);

View File

@@ -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,
};