Files
bigcapital/client/src/containers/Preferences/Currencies/CurrenciesList.js
2021-06-14 11:22:59 +02:00

31 lines
808 B
JavaScript

import React, { useEffect } from 'react';
import { FormattedMessage as T } from 'components';
import intl from 'react-intl-universal';
import { CurrenciesProvider } from './CurrenciesProvider';
import CurrenciesDataTable from './CurrenciesDataTable';
import CurrenciesAlerts from './CurrenciesAlerts';
import withDashboardActions from 'containers/Dashboard/withDashboardActions';
import { compose } from 'utils';
function CurrenciesList({
// #withDashboardActions
changePreferencesPageTitle,
}) {
useEffect(() => {
changePreferencesPageTitle(intl.get('currencies'));
}, [changePreferencesPageTitle]);
return (
<CurrenciesProvider>
<CurrenciesDataTable />
<CurrenciesAlerts />
</CurrenciesProvider>
);
}
export default compose(withDashboardActions)(CurrenciesList);