diff --git a/client/src/containers/Preferences/Accountant/Accountant.js b/client/src/containers/Preferences/Accountant/Accountant.js index 4e7ebe6be..957094e17 100644 --- a/client/src/containers/Preferences/Accountant/Accountant.js +++ b/client/src/containers/Preferences/Accountant/Accountant.js @@ -1,61 +1,14 @@ -import React, { useEffect } from 'react'; -import classNames from 'classnames'; -import { Formik } from 'formik'; -import { useQuery } from 'react-query'; -import { CLASSES } from 'common/classes'; -import { LoadingIndicator } from 'components'; -import AccountantForm from './AccountantForm'; -import { AccountantSchema } from './Accountant.schema'; - -import withDashboardActions from 'containers/Dashboard/withDashboardActions'; -import withSettings from 'containers/Settings/withSettings'; -import withSettingsActions from 'containers/Settings/withSettingsActions'; -import withAccountsActions from 'containers/Accounts/withAccountsActions'; - -import { compose } from 'utils'; - -import 'style/pages/Preferences/Accounting.scss'; - -// Accountant preferences. -function AccountantPreferences({ - changePreferencesPageTitle, - - // #withAccountsActions - requestFetchAccounts, -}) { - const initialValues = {}; - - useEffect(() => { - changePreferencesPageTitle('Accountant'); - }, [changePreferencesPageTitle]); - - const fetchAccounts = useQuery('accounts-list', (key) => - requestFetchAccounts(), - ); +import React from 'react'; +import AccountantFormPage from './AccountantFormPage'; +import { AccountantFormProvider } from './AccountantFormProvider'; +/** + * Accountant preferences. + */ +export default function AccountantPreferences() { return ( -