-
-
setEmail(e.target.value)} required />
+
+
+
+ {/* Logo placeholder — swap for

*/}
+
+ Logo
-
-
- setPassword(e.target.value)}
- required
- />
-
- {error &&
{error}
}
-
-
-
- No account? Register
-
+
+
{BUSINESS_NAME}
+
+
+
+
);
}
diff --git a/frontend/src/pages/LoginSuccessPage.tsx b/frontend/src/pages/LoginSuccessPage.tsx
deleted file mode 100644
index 7fe96e4..0000000
--- a/frontend/src/pages/LoginSuccessPage.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-export default function LoginSuccessPage() {
- return (
-
-
Login successful
-
You are now logged in.
-
- );
-}
diff --git a/frontend/src/pages/RegisterPage.tsx b/frontend/src/pages/RegisterPage.tsx
deleted file mode 100644
index e35f998..0000000
--- a/frontend/src/pages/RegisterPage.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import axios from "axios";
-import { useState } from "react";
-import { Link, useNavigate } from "react-router-dom";
-import { register } from "../api/client";
-
-export default function RegisterPage() {
- const navigate = useNavigate();
- const [email, setEmail] = useState("");
- const [password, setPassword] = useState("");
- const [fullName, setFullName] = useState("");
- const [error, setError] = useState("");
-
- const handleSubmit = async (e: React.FormEvent) => {
- e.preventDefault();
- setError("");
- try {
- await register(email, password, fullName);
- navigate("/register-success");
- } catch (err) {
- if (axios.isAxiosError(err)) {
- const detail = err.response?.data?.detail;
- if (Array.isArray(detail)) {
- setError(detail.map((d: { msg: string }) => d.msg).join(" / "));
- } else if (typeof detail === "string") {
- setError(detail);
- } else {
- setError("Registration failed.");
- }
- } else {
- setError("Registration failed.");
- }
- }
- };
-
- return (
-
-
Create account
-
-
- Already have an account? Sign in
-
-
- );
-}
diff --git a/frontend/src/pages/RegisterSuccessPage.tsx b/frontend/src/pages/RegisterSuccessPage.tsx
deleted file mode 100644
index fc20265..0000000
--- a/frontend/src/pages/RegisterSuccessPage.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Link } from "react-router-dom";
-
-export default function RegisterSuccessPage() {
- return (
-
-
Registration successful
-
Your account has been created.
-
Sign in
-
- );
-}
diff --git a/frontend/src/pages/SettingsPage.tsx b/frontend/src/pages/SettingsPage.tsx
new file mode 100644
index 0000000..d0e9a74
--- /dev/null
+++ b/frontend/src/pages/SettingsPage.tsx
@@ -0,0 +1,12 @@
+import Nav from "../components/Nav";
+
+export default function SettingsPage() {
+ return (
+ <>
+
+
+
Settings
+
+ >
+ );
+}