Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
seelengxd committed Sep 24, 2024
1 parent c1be74d commit 216aa9b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions frontend/app/(unauthenticated)/reset-password/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import { Box } from "@/components/ui/box";
import ResetPasswordCompleteForm from "./_components/reset-password-complete-form";
import ResetPasswordCompleteSent from "./_components/reset-password-complete-sent";
import ResetPasswordCreateRequestForm from "./_components/reset-password-create-request-form";
import ResetPasswordRequestSent from "./_components/reset-password-request-sent";

enum ResetPasswordState {
CreatingRequest,
SentRequest,
PendingReset,
End,
}
Expand All @@ -29,12 +27,7 @@ function ResetPasswordPage() {
return (
<Box className="flex flex-col m-auto w-full justify-center items-center gap-y-6">
{pageState === ResetPasswordState.CreatingRequest && (
<ResetPasswordCreateRequestForm
onComplete={() => setPageState(ResetPasswordState.SentRequest)}
/>
)}
{pageState === ResetPasswordState.SentRequest && (
<ResetPasswordRequestSent />
<ResetPasswordCreateRequestForm />
)}
{pageState === ResetPasswordState.PendingReset && (
<ResetPasswordCompleteForm
Expand Down

0 comments on commit 216aa9b

Please sign in to comment.