BOD-5 BOD-36 #comment Added Audit Trail List to jobs and created Audit List view component + queries

This commit is contained in:
Patrick Fic
2020-03-10 11:02:28 -07:00
parent d1cfd9bacf
commit 05d7aa7000
10 changed files with 345 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
import React from "react";
import { List } from "antd";
import Icon from "@ant-design/icons";
import { FaArrowRight } from "react-icons/fa";
export default function AuditTrailValuesComponent({ oldV, newV }) {
return (
<List bordered size="small">
{Object.keys(oldV).map((key, idx) => (
<List.Item key={idx} value={key}>
{key}: {oldV[key]} <Icon component={FaArrowRight} /> {newV[key]}
</List.Item>
))}
</List>
);
}