RePrint Detailds if no found data Print Icon Disable
This commit is contained in:
parent
626b3b502a
commit
c01a3baa98
|
|
@ -90,6 +90,8 @@ const ReprintReasonReportList = () => {
|
||||||
const [message, setMessage] = useState({ type: null, data: null });
|
const [message, setMessage] = useState({ type: null, data: null });
|
||||||
const [searchedText, setSearchedText] = useState('');
|
const [searchedText, setSearchedText] = useState('');
|
||||||
const [tableData, setTableData] = useState([]);
|
const [tableData, setTableData] = useState([]);
|
||||||
|
console.log(tableData, 'tableData23232');
|
||||||
|
|
||||||
const [fromDate, setFromDate] = useState();
|
const [fromDate, setFromDate] = useState();
|
||||||
const [toDate, setToDate] = useState();
|
const [toDate, setToDate] = useState();
|
||||||
const [page, setpage] = useState(1);
|
const [page, setpage] = useState(1);
|
||||||
|
|
@ -463,11 +465,13 @@ const ReprintReasonReportList = () => {
|
||||||
>
|
>
|
||||||
<BiSolidPrinter
|
<BiSolidPrinter
|
||||||
onClick={Print}
|
onClick={Print}
|
||||||
className={
|
style={{
|
||||||
tableData?.length > 0
|
fontSize: '24px',
|
||||||
? 'ItemWiseReport-printerIcon'
|
cursor: tableData?.length > 0 ? 'pointer' : 'not-allowed',
|
||||||
: 'ItemWiseReport-printerIcon-disabled'
|
opacity: tableData?.length > 0 ? 1 : 0.5,
|
||||||
}
|
pointerEvents: tableData?.length > 0 ? 'auto' : 'none'
|
||||||
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
{/* <div
|
{/* <div
|
||||||
style={{
|
style={{
|
||||||
|
|
@ -501,7 +505,7 @@ const ReprintReasonReportList = () => {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</div>
|
</div>
|
||||||
</div> */}
|
</div> */}
|
||||||
<div style={{paddingTop:'15px'}}>
|
<div style={{ paddingTop: '15px' }}>
|
||||||
<Form.Item name="DateRange">
|
<Form.Item name="DateRange">
|
||||||
<DatePicker.RangePicker
|
<DatePicker.RangePicker
|
||||||
format={'DD/MM/YYYY'}
|
format={'DD/MM/YYYY'}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue