Added first round of analytics and event tracking BOD-190

This commit is contained in:
Patrick Fic
2020-07-17 08:27:28 -07:00
parent 3f0394760a
commit a54a85b96c
73 changed files with 433 additions and 208 deletions

View File

@@ -5,6 +5,7 @@ import { Link } from "react-router-dom";
import CurrencyFormatter from "../../utils/CurrencyFormatter";
import { alphaSort } from "../../utils/sorters";
import JobExportButton from "../jobs-close-export-button/jobs-close-export-button.component";
import { logImEXEvent } from "../../firebase/firebase.utils";
export default function AccountingReceivablesTableComponent({ loading, jobs }) {
const { t } = useTranslation();
@@ -138,6 +139,7 @@ export default function AccountingReceivablesTableComponent({ loading, jobs }) {
const handleSearch = (e) => {
setState({ ...state, search: e.target.value });
logImEXEvent("accounting_receivables_search");
};
const dataSource = state.search
@@ -187,10 +189,10 @@ export default function AccountingReceivablesTableComponent({ loading, jobs }) {
);
}}
dataSource={dataSource}
size="small"
size='small'
pagination={{ position: "top" }}
columns={columns}
rowKey="id"
rowKey='id'
onChange={handleTableChange}
/>
</div>