Skip to content

Commit

Permalink
nadaa
Browse files Browse the repository at this point in the history
  • Loading branch information
NadaAboudeshish committed May 4, 2019
1 parent 57224e4 commit 5fa00e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/components/pages/GetCaseReviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class Companies extends Component {
})
.then((response) => {
console.log("hello")
swal("Accepted")
setTimeout("document.location.href = '/GetReviewer';",3500);
})
.catch((err)=>{
swal(err.response.data.msg|| err.response.data);
Expand All @@ -65,6 +67,8 @@ class Companies extends Component {
)
.then(res => {
console.log('Reject')
swal("rejected")
setTimeout("document.location.href = '/GetReviewer';",3500);
});
};

Expand Down Expand Up @@ -210,7 +214,7 @@ class Companies extends Component {
<Button
variant="omar"
style={{ width: '120px', height: '65px',backgroundColor:"#a3dbf1" }}
onClick={() => (this.accept(Form._id),alert("The form was accepted succesfully"),
onClick={() => (this.accept(Form._id),swal("The form was accepted succesfully"),
document.location.href = '/GetReviewer')}
>
<h6>
Expand All @@ -225,7 +229,7 @@ class Companies extends Component {
<Button
variant="omar"
style={{ width: '120px', height: '65px',backgroundColor:"#a3dbf1" }}
onClick={() => (this.reject(Form._id),alert("Form rejected Succesfully"),
onClick={() => (this.reject(Form._id),swal("Form rejected Succesfully"),
document.location.href = "/GetReviewer")}
>
<h6>
Expand Down

0 comments on commit 5fa00e1

Please sign in to comment.