fix: exchange rate table.

This commit is contained in:
elforjani3
2020-12-02 15:25:49 +02:00
parent 9c1edace50
commit 60117f8dbc
3 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ export default [
}, },
{ {
text: <T id={'exchange_rate'} />, text: <T id={'exchange_rate'} />,
href: '/ExchangeRates', href: '/exchange-rates',
}, },
], ],
}, },

View File

@@ -13,7 +13,7 @@ import classNames from 'classnames';
import { CLASSES } from 'common/classes'; import { CLASSES } from 'common/classes';
import { DataTable, Icon, MoneyExchangeRate } from 'components'; import { DataTable, Icon, Money } from 'components';
import LoadingIndicator from 'components/LoadingIndicator'; import LoadingIndicator from 'components/LoadingIndicator';
import withDialogActions from 'containers/Dialog/withDialogActions'; import withDialogActions from 'containers/Dialog/withDialogActions';
@@ -92,7 +92,7 @@ function ExchangeRateTable({
id: 'exchange_rate', id: 'exchange_rate',
Header: formatMessage({ id: 'exchange_rate' }), Header: formatMessage({ id: 'exchange_rate' }),
accessor: (r) => ( accessor: (r) => (
<MoneyExchangeRate <Money
amount={r.exchange_rate} amount={r.exchange_rate}
currency={r.currency_code} currency={r.currency_code}
/> />

View File

@@ -152,7 +152,7 @@ export default [
breadcrumb: 'Financial Reports', breadcrumb: 'Financial Reports',
}, },
{ {
path: `/ExchangeRates`, path: `/exchange-rates`,
component: LazyLoader({ component: LazyLoader({
loader: () => import('containers/ExchangeRates/ExchangeRate'), loader: () => import('containers/ExchangeRates/ExchangeRate'),
}), }),