RePrint Detailds if no found data Print Icon Disable

This commit is contained in:
Srinath 2026-03-20 11:01:28 +05:30
parent 626b3b502a
commit c01a3baa98
1 changed files with 38 additions and 34 deletions

View File

@ -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);
@ -463,11 +465,13 @@ const ReprintReasonReportList = () => {
>
<BiSolidPrinter
onClick={Print}
className={
tableData?.length > 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'
}}
/>
{/* <div
style={{