Skip to content

Commit

Permalink
fix the broken pipeline + Remove the Ununsed Forot passowrd page. (#49)
Browse files Browse the repository at this point in the history
* Fix the pipeline paths + fix the import

* revert the pipeline rules

* Fix the vite build + remove.the forgot password changes
  • Loading branch information
Mgrdich authored May 12, 2024
1 parent b9ca066 commit 8ddd764
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion frontend/src/hooks/useLogout.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import useAuth from "context/useAuth.ts";
import { useLogoutCall } from "./api/useLogoutCall.ts";
import useLogoutCall from "./api/useLogoutCall.ts";

export default function useLogout() {
const { setToken } = useAuth();
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/pages/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ function Login() {
onInput={(e) => setPassword(e.currentTarget.value)}
/>
</div>
<div className="flex justify-between items-center mb-6">
<div className="ml-4">
<LinkText to="/forgot-password">Forgot password ?</LinkText>
</div>
</div>
<div className="flex justify-between items-center mb-6" />
<Button disabled={isPending} className="w-full" onClick={onSubmit}>
Sign In
</Button>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Auth/components/FormSubmitButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PropsWithChildren } from "react";

interface FormSubmitButtonProps extends PropsWithChildren {
disabled: boolean;
disabled?: boolean;
}

function FormSubmitButton({ children, disabled }: FormSubmitButtonProps) {
Expand Down
9 changes: 4 additions & 5 deletions frontend/src/router/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createBrowserRouter, RouterProvider } from "react-router-dom";
import { useMemo } from "react";
import Login from "pages/Auth/Login.tsx";
import Register from "pages/Auth/Register.tsx";
import ForgotPassword from "pages/Auth/ForgotPassword.tsx";
import Error404 from "pages/Error/Error404.tsx";
import Error500 from "pages/Error/Error500.tsx";
import Conversation from "pages/Conversation/Conversation.tsx";
Expand Down Expand Up @@ -56,10 +55,10 @@ const routesForNotAuthenticatedOnly = [
path: "/register",
Component: Register,
},
{
path: "/forgot-password",
Component: ForgotPassword,
},
// {
// path: "/forgot-password",
// Component: ForgotPassword,
// },
];

export default function Routes() {
Expand Down

0 comments on commit 8ddd764

Please sign in to comment.