aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-09-11 17:51:04 +0100
committerGravatar Joe Banks <[email protected]>2024-09-11 17:51:04 +0100
commitc4e525cdd4a2396c4fa3e73aa4817bf375debb6b (patch)
tree0571880157ae0adf1d34fb4328db748b6530e5e7 /thallium-frontend
parentWrap variables in CartStatus with accent colour (diff)
Add checkout page
Diffstat (limited to 'thallium-frontend')
-rw-r--r--thallium-frontend/src/pages/CheckoutPage.tsx21
1 files changed, 21 insertions, 0 deletions
diff --git a/thallium-frontend/src/pages/CheckoutPage.tsx b/thallium-frontend/src/pages/CheckoutPage.tsx
new file mode 100644
index 0000000..ae73009
--- /dev/null
+++ b/thallium-frontend/src/pages/CheckoutPage.tsx
@@ -0,0 +1,21 @@
+import Card from "../components/Card";
+import MaxWidthContainer from "../components/MaxWidthContainer";
+import Button from "../components/forms/Button";
+import { useNavigate } from "react-router-dom";
+
+const CheckoutPage = () => {
+ const navigate = useNavigate();
+
+ return <MaxWidthContainer>
+ <h1>Checkout</h1>
+ <Button onClick={() => {
+ navigate("/store");
+ }}>&lt; Return to store</Button>
+ <Card title="Cart">
+ {/* TODO */}
+ Not yet implemented.
+ </Card>
+ </MaxWidthContainer>
+};
+
+export default CheckoutPage;