diff --git a/src/App.tsx b/src/App.tsx
index 483aec2..e6dd886 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -13,6 +13,7 @@ import Product from "./Routes/Product/Product";
import Activation from "./Routes/Activation/Activation";
import { QueryClient, QueryClientProvider } from "react-query";
import NewProduct from "./Routes/NewProduct/NewProduct";
+import Register from "./Routes/Register/Register";
const queryClient = new QueryClient();
@@ -86,6 +87,14 @@ const router = createBrowserRouter([
),
},
+ {
+ path: "/Register",
+ element: (
+
+
+
+ ),
+ },
]);
export default function App() {
diff --git a/src/Routes/Login/Login.tsx b/src/Routes/Login/Login.tsx
index e2ace97..55288c4 100644
--- a/src/Routes/Login/Login.tsx
+++ b/src/Routes/Login/Login.tsx
@@ -5,9 +5,6 @@ import { Button } from "@mui/material";
import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
import { useState } from "react";
-import { Navigate } from "react-router-dom";
-import { LoginState } from "../../Interfaces/Interfaces";
-import { useSelector } from "react-redux";
import { UserInfo, UserLogin } from "../../Components/Api/Api";
import { toggle_login } from "../../Features/Redux/Slices/Login/LoginSlice";
@@ -21,10 +18,6 @@ export default function Login() {
password: "",
});
const [error, setError] = useState("");
- const logged_in = useSelector((state: LoginState) => state.logged_in.value);
- if (logged_in) {
- return ;
- }
return (
+
+
+ Create an Account
+
+
+
Email
+
+
) => {
+ setUser({ ...user, email: e.target.value });
+ }}
+ maxLength={20}
+ />
+
+
+
Username
+
+
) => {
+ setUser({ ...user, username: e.target.value });
+ }}
+ maxLength={20}
+ />
+
+
+
Password
+
+
) => {
+ setUser({ ...user, password: e.target.value });
+ }}
+ maxLength={20}
+ />
+
+
+
{feedback}
+
+
+ );
+}