mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 22:19:31 +02:00
fix toast dismiss causing components to rerender and clean up rules text
This commit is contained in:
parent
6fba13c8d1
commit
8165051dd8
26 changed files with 69 additions and 83 deletions
|
@ -36,7 +36,7 @@ import {
|
|||
} from "@server/routers/auth";
|
||||
import { Loader2 } from "lucide-react";
|
||||
import { Alert, AlertDescription } from "../../../components/ui/alert";
|
||||
import { useToast } from "@app/hooks/useToast";
|
||||
import { toast } from "@app/hooks/useToast";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { formatAxiosError } from "@app/lib/api";;
|
||||
import { createApiClient } from "@app/lib/api";
|
||||
|
@ -96,8 +96,6 @@ export default function ResetPasswordForm({
|
|||
|
||||
const [state, setState] = useState<"request" | "reset" | "mfa">(getState());
|
||||
|
||||
const { toast } = useToast();
|
||||
|
||||
const api = createApiClient(useEnvContext());
|
||||
|
||||
const form = useForm<z.infer<typeof formSchema>>({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue