mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat(Sales & Purchases ): add currency tag.
This commit is contained in:
10
src/components/Currencies/BaseCurrency.js
Normal file
10
src/components/Currencies/BaseCurrency.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
import { CurrencyTag } from 'components';
|
||||
|
||||
/**
|
||||
* base currecncy.
|
||||
* @returns
|
||||
*/
|
||||
export function BaseCurrency({ currency }) {
|
||||
return <CurrencyTag>{currency}</CurrencyTag>;
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
export * from './CurrencySelect'
|
||||
export * from './CurrencySelect';
|
||||
export * from './BaseCurrency';
|
||||
|
||||
@@ -9,3 +9,13 @@ export const CurrencyTag = styled.span`
|
||||
line-height: 1;
|
||||
margin-left: 4px;
|
||||
`;
|
||||
|
||||
export const BaseCurrencyRoot = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 10px;
|
||||
margin-left: 4px;
|
||||
> span {
|
||||
background: #5c7080;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -55,7 +55,6 @@ import AvaterCell from './AvaterCell';
|
||||
import { ItemsMultiSelect } from './Items';
|
||||
import MoreMenuItems from './MoreMenutItems';
|
||||
import CustomSelectList from './CustomSelectList';
|
||||
import BaseCurrency from './BaseCurrency';
|
||||
|
||||
export * from './Dialog';
|
||||
export * from './Menu';
|
||||
@@ -168,7 +167,6 @@ export {
|
||||
MoneyFieldCell,
|
||||
ItemsMultiSelect,
|
||||
AvaterCell,
|
||||
BaseCurrency,
|
||||
MoreMenuItems,
|
||||
CustomSelectList,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user