From c01a3baa98279973a433aa61a933c511151369f3 Mon Sep 17 00:00:00 2001 From: Srinath Date: Fri, 20 Mar 2026 11:01:28 +0530 Subject: [PATCH] RePrint Detailds if no found data Print Icon Disable --- .../ReprintReasonReportList.jsx | 72 ++++++++++--------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/src/Pages/Reports/ReprintReasonReport/ReprintReasonReportList.jsx b/src/Pages/Reports/ReprintReasonReport/ReprintReasonReportList.jsx index e9d29cd..5d6092e 100644 --- a/src/Pages/Reports/ReprintReasonReport/ReprintReasonReportList.jsx +++ b/src/Pages/Reports/ReprintReasonReport/ReprintReasonReportList.jsx @@ -90,6 +90,8 @@ const ReprintReasonReportList = () => { const [message, setMessage] = useState({ type: null, data: null }); const [searchedText, setSearchedText] = useState(''); const [tableData, setTableData] = useState([]); + console.log(tableData, 'tableData23232'); + const [fromDate, setFromDate] = useState(); const [toDate, setToDate] = useState(); const [page, setpage] = useState(1); @@ -103,21 +105,21 @@ const ReprintReasonReportList = () => { index: index + 1 })); - const items = [ - { - name: 'Home', - link: `${subDirectory}app-page/home`, - }, - - { - name: 'Reprint Details', - link: `${subDirectory}report/reprintreasonreport`, - }, - ]; - - useEffect(() => { - dispatch(changeBreadCrumb({ items: items })); - }, []); + const items = [ + { + name: 'Home', + link: `${subDirectory}app-page/home`, + }, + + { + name: 'Reprint Details', + link: `${subDirectory}report/reprintreasonreport`, + }, + ]; + + useEffect(() => { + dispatch(changeBreadCrumb({ items: items })); + }, []); const columns = [ { title: 'Sl.No', @@ -463,11 +465,13 @@ const ReprintReasonReportList = () => { > 0 - ? 'ItemWiseReport-printerIcon' - : 'ItemWiseReport-printerIcon-disabled' - } + style={{ + fontSize: '24px', + cursor: tableData?.length > 0 ? 'pointer' : 'not-allowed', + opacity: tableData?.length > 0 ? 1 : 0.5, + pointerEvents: tableData?.length > 0 ? 'auto' : 'none' + }} + /> {/*
{
*/} -
- - current && current > dayjs()} - /> - -
+
+ + current && current > dayjs()} + /> + +