mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 23:30:32 +00:00
feat: cashflow account transactions.
This commit is contained in:
@@ -30,11 +30,8 @@ function AccountTransactionsDataTable({
|
|||||||
const columns = useAccountTransactionsColumns();
|
const columns = useAccountTransactionsColumns();
|
||||||
|
|
||||||
// Retrieve list context.
|
// Retrieve list context.
|
||||||
const {
|
const { cashflowTransactions, isCashFlowTransactionsLoading } =
|
||||||
cashflowTransactions,
|
useAccountTransactionsContext();
|
||||||
isCashFlowTransactionsFetching,
|
|
||||||
isCashFlowTransactionsLoading,
|
|
||||||
} = useAccountTransactionsContext();
|
|
||||||
|
|
||||||
// Local storage memorizing columns widths.
|
// Local storage memorizing columns widths.
|
||||||
const [initialColumnsWidths, , handleColumnResizing] =
|
const [initialColumnsWidths, , handleColumnResizing] =
|
||||||
@@ -85,28 +82,39 @@ export default compose(
|
|||||||
)(AccountTransactionsDataTable);
|
)(AccountTransactionsDataTable);
|
||||||
|
|
||||||
const DashboardConstrantTable = styled(DataTable)`
|
const DashboardConstrantTable = styled(DataTable)`
|
||||||
.table .thead {
|
.table {
|
||||||
.th {
|
.thead {
|
||||||
border-bottom-color: #666;
|
.th {
|
||||||
border-top-color: #666;
|
background: #fff;
|
||||||
background: #fff;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
const CashflowTransactionsTable = styled(DashboardConstrantTable)`
|
.tbody {
|
||||||
.table .tbody {
|
.tr:last-child .td {
|
||||||
|
|
||||||
.tbody-inner .tr.no-results {
|
|
||||||
.td {
|
|
||||||
padding: 3rem 0;
|
|
||||||
font-size: 16px;
|
|
||||||
color: #888;
|
|
||||||
font-weight: 400;
|
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const CashflowTransactionsTable = styled(DashboardConstrantTable)`
|
||||||
|
.table .tbody {
|
||||||
|
.tbody-inner .tr.no-results {
|
||||||
|
.td {
|
||||||
|
padding: 2rem 0;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #888;
|
||||||
|
font-weight: 400;
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tbody-inner {
|
||||||
|
.tr .td:not(:first-child) {
|
||||||
|
border-left: 1px solid #e6e6e6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
const DashboardRegularTable = styled(DataTable)``;
|
const DashboardRegularTable = styled(DataTable)``;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import 'style/pages/CashFlow/AccountTransactions/List.scss';
|
import 'style/pages/CashFlow/AccountTransactions/List.scss';
|
||||||
|
|
||||||
@@ -22,9 +23,9 @@ function AccountTransactionsList() {
|
|||||||
<AccountTransactionsProgressBar />
|
<AccountTransactionsProgressBar />
|
||||||
|
|
||||||
<DashboardPageContent>
|
<DashboardPageContent>
|
||||||
<DashboardContentTable>
|
<CashflowTransactionsTableCard>
|
||||||
<AccountTransactionsDataTable />
|
<AccountTransactionsDataTable />
|
||||||
</DashboardContentTable>
|
</CashflowTransactionsTableCard>
|
||||||
</DashboardPageContent>
|
</DashboardPageContent>
|
||||||
<AccountTransactionsAlerts />
|
<AccountTransactionsAlerts />
|
||||||
</AccountTransactionsProvider>
|
</AccountTransactionsProvider>
|
||||||
@@ -32,3 +33,12 @@ function AccountTransactionsList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default AccountTransactionsList;
|
export default AccountTransactionsList;
|
||||||
|
|
||||||
|
const CashflowTransactionsTableCard = styled.div`
|
||||||
|
border: 2px solid #f0f0f0;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 30px 18px;
|
||||||
|
margin: 30px 15px;
|
||||||
|
background: #fff;
|
||||||
|
flex: 0 1;
|
||||||
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user