Skip to content

Commit

Permalink
feat(analysis): added the analysis request
Browse files Browse the repository at this point in the history
Signed-off-by: Shruti3004 <mail2shruti.ag@gmail.com>
  • Loading branch information
Shruti3004 committed Jul 1, 2021
1 parent d45c5d3 commit 8e5513c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/getFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const getAllFolders = () => {
return sendRequest({
url,
method: "GET",
credentials: false,
credentials: "include",
headers: {
Authorization: getToken(),
},
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Search = () => {
return (
<div className="main-container my-3">
<div className="row">
<div className="col-lg-8 col-md-12 col-sm-12 col-12 bg-white home-box-shadow">
<div className="col-lg-8 col-md-12 col-sm-12 col-12">
<form>
<InputContainer
value="directory"
Expand Down Expand Up @@ -169,7 +169,7 @@ const Search = () => {
</h3>
{searchResult.map(
({ uploadName, folderName, fileName }, index) => (
<div key={index} className="card p-3 mt-2">
<div key={index} className="box p-3 mt-2">
<div className="font-demi">
{index + 1}. Folder: {folderName}
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/pages/Upload/File/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ const UploadFile = () => {
type: "success",
text: "Successfully uploaded the files",
});
uploadId = res.message;
scrollTo({ top: 0 });
uploadId = res.message;
})
.then(() => {
setTimeout(
Expand All @@ -97,6 +97,8 @@ const UploadFile = () => {
text: "Analysis for the file is scheduled.",
});
scrollTo({ top: 0 });
setUploadFileData(initialState);
setScanFileData(initialScanFileData);
})
.catch((error) => {
setMessage({
Expand All @@ -105,7 +107,7 @@ const UploadFile = () => {
});
scrollTo({ top: 0 });
}),
1000
1200
);
})
.catch((error) => {
Expand Down

0 comments on commit 8e5513c

Please sign in to comment.