mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat(ExchangeRateInput): depend on currency code instead of country code.
This commit is contained in:
@@ -12,14 +12,11 @@ export function ExchangeRateInputGroup({
|
||||
formGroupProps,
|
||||
name,
|
||||
}) {
|
||||
const fromCountryCode = 'US';
|
||||
const toCountryCode = 'LY';
|
||||
|
||||
return (
|
||||
<FFormGroup inline={true} {...formGroupProps} name={name}>
|
||||
<ControlGroup>
|
||||
<ExchangeRatePrepend>
|
||||
<ExchangeFlagIcon countryCode={fromCountryCode} /> 1 {fromCurrency} =
|
||||
<ExchangeFlagIcon currencyCode={fromCurrency} /> 1 {fromCurrency} =
|
||||
</ExchangeRatePrepend>
|
||||
<ExchangeRateField
|
||||
allowDecimals={true}
|
||||
@@ -28,7 +25,7 @@ export function ExchangeRateInputGroup({
|
||||
name={name}
|
||||
/>
|
||||
<ExchangeRateAppend>
|
||||
<ExchangeFlagIcon countryCode={toCountryCode} /> {toCurrency}
|
||||
<ExchangeFlagIcon currencyCode={toCurrency} /> {toCurrency}
|
||||
</ExchangeRateAppend>
|
||||
</ControlGroup>
|
||||
</FFormGroup>
|
||||
|
||||
Reference in New Issue
Block a user