Skip to content

Commit

Permalink
added font awesome icon to cancel request
Browse files Browse the repository at this point in the history
  • Loading branch information
Westc13 committed Dec 14, 2022
1 parent ea175aa commit 74ccd3f
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 10 deletions.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"firebase": "^9.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.7.1",
"react-router-dom": "^6.4.5",
"react-scripts": "5.0.1",
"sass": "^1.56.2",
Expand Down
13 changes: 12 additions & 1 deletion src/pages/Cancel.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
import Home from "./Home";
import { useNavigate } from "react-router-dom";
import { FaFontAwesome, FaRegTimesCircle } from "react-icons/fa";
function Cancel() {
const navigate = useNavigate();
const goHome = () => {
navigate("/");
};
return (
<>
<div className="home-wrapper">
<Home />
</div>
<div className="wrapper">
<div className="cancel-msg">
<p>Your request has been cancelled. Hope to see you soon!</p>
<div onClick={goHome}>
<FaRegTimesCircle />
</div>
<div className="cancel-text">
<p>Your request has been cancelled. Hope to see you soon!</p>
</div>
</div>
</div>
</>
Expand Down
20 changes: 11 additions & 9 deletions src/styles/cancel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
opacity: 0.3;
}
.cancel-msg {
width: 660px;
height: 240px;
background-color: $popup;
border-radius: 10px 10px 10px 10px;
text-align: center;
position: absolute;
left: 25%;
left: 33%;
top: 347px;
z-index: 10;
opacity: 1;
display: flex;
justify-content: center;
align-items: center;
.cancel-text {
display: flex;
justify-content: center;
align-items: center;
width: 660px;
height: 240px;
background-color: $popup;
border-radius: 10px 10px 10px 10px;
text-align: center;
}
}

0 comments on commit 74ccd3f

Please sign in to comment.