mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
|
|
import 'style/pages/Accounts/List.scss';
|
|
import { DashboardPageContent, DashboardContentTable } from 'components';
|
|
|
|
import { AccountsChartProvider } from './AccountsChartProvider';
|
|
|
|
import AccountsViewsTabs from 'containers/Accounts/AccountsViewsTabs';
|
|
import AccountsActionsBar from 'containers/Accounts/AccountsActionsBar';
|
|
import AccountsAlerts from './AccountsAlerts';
|
|
import AccountsDataTable from './AccountsDataTable';
|
|
|
|
import withAccounts from 'containers/Accounts/withAccounts';
|
|
|
|
import { transformTableStateToQuery, compose } from 'utils';
|
|
|
|
/**
|
|
* Accounts chart list.
|
|
*/
|
|
function AccountsChart({
|
|
// #withAccounts
|
|
accountsTableState,
|
|
}) {
|
|
return (
|
|
<AccountsChartProvider
|
|
query={transformTableStateToQuery(accountsTableState)}
|
|
>
|
|
<AccountsActionsBar />
|
|
|
|
<DashboardPageContent>
|
|
<AccountsViewsTabs />
|
|
|
|
<DashboardContentTable>
|
|
<AccountsDataTable />
|
|
</DashboardContentTable>
|
|
</DashboardPageContent>
|
|
|
|
<AccountsAlerts />
|
|
</AccountsChartProvider>
|
|
);
|
|
}
|
|
|
|
export default compose(
|
|
withAccounts(({ accountsTableState }) => ({ accountsTableState })),
|
|
)(AccountsChart);
|