diff --git a/src/components/dashboard/loan-history/Form/HistoryForm/PrintHistory.jsx b/src/components/dashboard/loan-history/Form/HistoryForm/PrintHistory.jsx
index 438bff5..9028919 100644
--- a/src/components/dashboard/loan-history/Form/HistoryForm/PrintHistory.jsx
+++ b/src/components/dashboard/loan-history/Form/HistoryForm/PrintHistory.jsx
@@ -3,33 +3,24 @@ import {useTranslations} from "next-intl";
import {useState} from "react";
import useRequest from "@/lib/app/hooks/useRequest";
import DescriptionIcon from '@mui/icons-material/Description';
+import Link from "next/link";
const PrintHistory = ({attachment}) => {
const t = useTranslations();
- const [loading, setLoading] = useState(false)
- const requestServer = useRequest({auth: true, pending: false, success: {notification: {show: false}}})
- const clickHandler = (attachment) => {
- const anchor = document.createElement('a');
- anchor.href = attachment;
- anchor.setAttribute('download', '');
- document.body.appendChild(anchor);
- anchor.click();
- document.body.removeChild(anchor);
- }
-
-
- return ( : }
- onClick={() => clickHandler(attachment.file)}
- >
- {attachment.title}
- )
+ return (
+
+ );
}
export default PrintHistory
\ No newline at end of file