Cosmetic updates

This commit is contained in:
Patrick Fic
2020-03-12 08:52:22 -07:00
parent a0c0a06850
commit f9fb5e4dc0
10 changed files with 70 additions and 34 deletions

View File

@@ -16,7 +16,7 @@ export default function AuditTrailListComponent({ loading, data }) {
title: t("audit.fields.created"),
dataIndex: " created",
key: " created",
width: "10%",
render: (text, record) => (
<DateTimeFormatter>{record.created}</DateTimeFormatter>
),
@@ -28,6 +28,7 @@ export default function AuditTrailListComponent({ loading, data }) {
title: t("audit.fields.operation"),
dataIndex: "operation",
key: "operation",
width: "10%",
sorter: (a, b) => alphaSort(a.operation, b.operation),
sortOrder:
state.sortedInfo.columnKey === "operation" && state.sortedInfo.order
@@ -36,6 +37,7 @@ export default function AuditTrailListComponent({ loading, data }) {
title: t("audit.fields.values"),
dataIndex: " old_val",
key: " old_val",
width: "10%",
render: (text, record) => (
<AuditTrailValuesComponent
oldV={record.old_val}
@@ -47,6 +49,7 @@ export default function AuditTrailListComponent({ loading, data }) {
title: t("audit.fields.useremail"),
dataIndex: "useremail",
key: "useremail",
width: "10%",
sorter: (a, b) => alphaSort(a.useremail, b.useremail),
sortOrder:
state.sortedInfo.columnKey === "useremail" && state.sortedInfo.order