diff --git a/src/admin/components/ResourceTabs/AuditLogTab/components/AuditLogSiteTab.tsx b/src/admin/components/ResourceTabs/AuditLogTab/components/AuditLogSiteTab.tsx deleted file mode 100644 index 65f0b526d..000000000 --- a/src/admin/components/ResourceTabs/AuditLogTab/components/AuditLogSiteTab.tsx +++ /dev/null @@ -1,105 +0,0 @@ -import { Grid, Stack } from "@mui/material"; -import { FC, useEffect, useState } from "react"; -import { Button, Link, TabbedShowLayout, TabProps, useBasename, useShowContext } from "react-admin"; -import { When } from "react-if"; - -import modules from "@/admin/modules"; -import Text from "@/components/elements/Text/Text"; -import { SITE } from "@/constants/entities"; -import useAuditLogActions from "@/hooks/AuditStatus/useAuditLogActions"; -import { Entity } from "@/types/common"; - -import SiteAuditLogEntityStatus from "../components/SiteAuditLogEntityStatus"; -import SiteAuditLogEntityStatusSide from "../components/SiteAuditLogEntityStatusSide"; -import { AuditLogButtonStates } from "../constants/enum"; -import AuditLogSiteTabSelection from "./AuditLogSiteTabSelection"; - -interface IProps extends Omit { - label?: string; - entity?: Entity["entityName"]; -} - -const AuditLogSiteTab: FC = ({ label, entity, ...rest }) => { - const [buttonToogle, setButtonToogle] = useState(AuditLogButtonStates.PROJECT); - const { record, isLoading } = useShowContext(); - const basename = useBasename(); - - const { - mutateEntity, - valuesForStatus, - statusLabels, - entityType, - entityListItem, - loadEntityList, - selected, - setSelected, - auditLogData, - refetch, - checkPolygonsSite - } = useAuditLogActions({ - record, - buttonToogle, - entityLevel: SITE - }); - - useEffect(() => { - refetch(); - loadEntityList(); - }, [buttonToogle]); - - return ( - - - - - - - - Project Status - - Update the site status, view updates, or add comments - -