-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b57186
commit ef02d0e
Showing
1 changed file
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import React, { useEffect, useState } from "react"; | ||
import { redirect } from "next/navigation"; | ||
import Head from "next/head"; | ||
import { Col, Container, Row } from "reactstrap"; | ||
|
||
export default function Return() { | ||
const Return = () => { | ||
const [status, setStatus] = useState(null); | ||
const [customerEmail, setCustomerEmail] = useState(""); | ||
|
||
|
@@ -27,15 +29,41 @@ export default function Return() { | |
if (status === "complete") { | ||
// TODO check if failure is possible. If so, should probably have a different message | ||
return ( | ||
<section id="success"> | ||
<p> | ||
Thanks for shopping with us! A confirmation email will be sent to{" "} | ||
{customerEmail}. If you have any questions, please email{" "} | ||
<a href="mailto:[email protected]">[email protected]</a>. | ||
</p> | ||
</section> | ||
<> | ||
<Head> | ||
<title>Merch | UNSW Co-op Society</title> | ||
<meta name="robots" content="noindex"></meta> | ||
</Head> | ||
|
||
<section className="section section-lg"> | ||
<Row className="justify-content-center text-center "> | ||
<Col lg="8"> | ||
<h1 className="animate__animated animate__zoomIn animate__fast"> | ||
SUCCESS | ||
</h1> | ||
</Col> | ||
</Row> | ||
|
||
<Container className="py-lg-md d-flex"> | ||
<Row className="justify-content-center text-center"> | ||
<Col lg="10"> | ||
<p className="lead text-muted"> | ||
Thanks for shopping with us! A confirmation email will be sent | ||
to {customerEmail}. If you have any questions, please email{" "} | ||
<a href="mailto:[email protected]"> | ||
[email protected] | ||
</a> | ||
. | ||
</p> | ||
</Col> | ||
</Row> | ||
</Container> | ||
</section> | ||
</> | ||
); | ||
} | ||
|
||
return null; | ||
} | ||
}; | ||
|
||
export default Return; |