+
+
+ |
+ {name} |
+
+
+ {isOtherEntity && (
+
+ )}
+
+ {isOtherEntity && (
+
+ )}
+
+ |
+
+ );
+};
+
+interface Props {
+ entity: EntityShape;
+ verbiage: AnyObject;
+ openAddEditEntityModal: Function;
+ openDeleteEntityModal: Function;
+ openDrawer: Function;
+ [key: string]: any;
+}
+
+const sx = {
+ content: {
+ verticalAlign: "middle",
+ paddingLeft: "1.5rem",
+ td: {
+ borderColor: "palette.gray_light",
+ paddingRight: 0,
+ },
+ },
+ statusIcon: {
+ maxWidth: "fit-content",
+ },
+ errorText: {
+ color: "palette.error_dark",
+ fontSize: "0.75rem",
+ marginBottom: "0.75rem",
+ },
+ entityName: {
+ maxWidth: "18.75rem",
+ fontSize: "md",
+ fontWeight: "bold",
+ },
+ actionContainer: {
+ alignItems: "center",
+ display: "flex",
+ },
+ editNameButton: {
+ paddingRight: "2.5rem",
+ fontWeight: "normal",
+ textDecoration: "underline",
+ color: "palette.primary",
+ },
+ editEntityButton: {
+ padding: 0,
+ fontWeight: "bold",
+ width: "6.5rem",
+ marginLeft: "8.25rem",
+ },
+ editOtherEntityButton: {
+ padding: 0,
+ fontWeight: "bold",
+ width: "6.5rem",
+ },
+ deleteButton: {
+ height: "1.875rem",
+ width: "1.875rem",
+ minWidth: "1.875rem",
+ padding: 0,
+ marginLeft: "1rem",
+ background: "white",
+ "&:hover, &:hover:disabled": {
+ background: "white",
+ },
+ },
+};
diff --git a/services/ui-src/src/components/tables/EntityStatusIcon.tsx b/services/ui-src/src/components/tables/EntityStatusIcon.tsx
new file mode 100644
index 000000000..cdd05b2d8
--- /dev/null
+++ b/services/ui-src/src/components/tables/EntityStatusIcon.tsx
@@ -0,0 +1,99 @@
+// components
+import { Box, Image, Text } from "@chakra-ui/react";
+// utils
+import { EntityShape } from "types";
+// assets
+import unfinishedIcon from "assets/icons/icon_error_circle_bright.png";
+import unfinishedIconDark from "assets/icons/icon_error_circle.png";
+import successIcon from "assets/icons/icon_check_circle.png";
+import successIconDark from "assets/icons/icon_check_circle_dark.png";
+import { useContext, useMemo } from "react";
+import { ReportContext } from "components/reports/ReportProvider";
+
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
+export const EntityStatusIcon = ({ entity, isPdf }: Props) => {
+ const { report } = useContext(ReportContext);
+
+ const entityComplete = useMemo(() => {
+ return false;
+ }, [report]);
+
+ return (
+