diff --git a/src/Components/Resource/ResourceDetails.tsx b/src/Components/Resource/ResourceDetails.tsx index 6b69bdf0eca..05711ae2735 100644 --- a/src/Components/Resource/ResourceDetails.tsx +++ b/src/Components/Resource/ResourceDetails.tsx @@ -5,17 +5,13 @@ import { classNames } from "../../Utils/utils"; import { statusType, useAbortableEffect } from "../../Common/utils"; import { getResourceDetails, deleteResourceRecord } from "../../Redux/actions"; import { navigate } from "raviger"; -import Button from "@material-ui/core/Button"; -import Dialog from "@material-ui/core/Dialog"; -import DialogActions from "@material-ui/core/DialogActions"; -import DialogContent from "@material-ui/core/DialogContent"; -import DialogContentText from "@material-ui/core/DialogContentText"; -import DialogTitle from "@material-ui/core/DialogTitle"; import * as Notification from "../../Utils/Notifications.js"; import CommentSection from "./CommentSection"; import { formatDate } from "../../Utils/utils"; +import ButtonV2 from "../Common/components/ButtonV2"; +import Page from "../Common/components/Page"; +import ConfirmDialogV2 from "../Common/ConfirmDialogV2"; const Loading = loadable(() => import("../Common/Loading")); -const PageTitle = loadable(() => import("../Common/PageTitle")); export default function ResourceDetails(props: { id: string }) { const dispatch: any = useDispatch(); @@ -233,33 +229,26 @@ export default function ResourceDetails(props: { id: string }) { } return ( -
+ {isPrintMode ? (
-
- - +
{ApprovalLetter(data)}
) : (
-
-
-
+ + Update Status/Details +
@@ -370,46 +350,25 @@ export default function ResourceDetails(props: { id: string }) {
-
+
- + - setOpenDeleteResourceDialog(false)} - > - - Authorize resource delete - - - - Are you sure you want to delete this record? - - - - - - - + onConfirm={handleResourceDelete} + />
@@ -477,6 +436,6 @@ export default function ResourceDetails(props: { id: string }) { )} - + ); }