Handle reset button
This commit is contained in:
parent
0db051470e
commit
19a220fec5
@ -181,7 +181,7 @@ const FileCard = ({ file, isSelected, onClick, setIsReasonModalOpen }) => {
|
||||
bottom: 2,
|
||||
right: 2,
|
||||
}}>
|
||||
<Button style={{
|
||||
{/* <Button style={{
|
||||
margin: '4px 2px',
|
||||
}}
|
||||
onClick={() => {
|
||||
@ -189,7 +189,7 @@ const FileCard = ({ file, isSelected, onClick, setIsReasonModalOpen }) => {
|
||||
}}
|
||||
>
|
||||
Review
|
||||
</Button>
|
||||
</Button> */}
|
||||
<Button style={{
|
||||
margin: '4px 2px',
|
||||
}} onClick={() => {
|
||||
@ -272,7 +272,6 @@ const InferencePage = () => {
|
||||
const [selectedFileData, setSelectedFileData] = useState(null);
|
||||
const [selectedFileName, setSelectedFileName] = useState(null);
|
||||
const [currentRequest, setCurrentRequest] = useState(null);
|
||||
const [totalRequests, setTotalPages] = useState(0);
|
||||
const [dataSource, setDataSource] = useState([]);
|
||||
|
||||
const setAndLoadSelectedFile = async (requestData, index) => {
|
||||
@ -543,6 +542,10 @@ const InferencePage = () => {
|
||||
setInvoiceFiles([]);
|
||||
setImei1Files([]);
|
||||
setImei2Files([]);
|
||||
setCurrentRequest(null);
|
||||
setDataSource([]);
|
||||
setSelectedFileData(null);
|
||||
setUploading(false);
|
||||
}}
|
||||
>
|
||||
Reset
|
||||
|
Loading…
Reference in New Issue
Block a user