bug fixes on user

This commit is contained in:
2026-03-20 09:32:17 -05:00
parent 85073c19d2
commit 751c8f21ab
5 changed files with 7 additions and 17 deletions

View File

@@ -4,7 +4,6 @@ import { promisify } from "node:util";
import type { Transporter } from "nodemailer";
import nodemailer from "nodemailer";
import type Mail from "nodemailer/lib/mailer/index.js";
import type { Address } from "nodemailer/lib/mailer/index.js";
import hbs from "nodemailer-express-handlebars";
import { returnFunc } from "./returnHelper.utils.js";
import { tryCatch } from "./trycatch.utils.js";

View File

@@ -1,5 +1,5 @@
import { Link } from "@tanstack/react-router";
import React from "react";
import { toast } from "sonner";
import {
Card,

View File

@@ -1,4 +1,4 @@
import { createFileRoute, redirect, useRouter } from "@tanstack/react-router";
import { createFileRoute, redirect } from "@tanstack/react-router";
import { toast } from "sonner";
import {
Card,
@@ -33,7 +33,6 @@ export const Route = createFileRoute("/(auth)/user/profile")({
function RouteComponent() {
const { data: session } = useSession();
const router = useRouter();
const form = useAppForm({
defaultValues: {
name: session?.user.name,

View File

@@ -1,15 +1,7 @@
import { createFileRoute, Link } from "@tanstack/react-router";
import { toast } from "sonner";
import { createFileRoute } from "@tanstack/react-router";
import z from "zod";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { authClient } from "@/lib/auth-client";
import { useAppForm } from "@/lib/formSutff";
import ResetForm from "./-components/ResetForm";
import ResetPassword from "./-components/ResetPassword";

View File

@@ -1,8 +1,8 @@
import { createFileRoute } from "@tanstack/react-router";
import z from "zod";
import { Button } from "@/components/ui/button";
import { authClient, useSession } from "../lib/auth-client";
import { useSession } from "../lib/auth-client";
export const Route = createFileRoute("/")({
validateSearch: z.object({