refactor(users): some user refactoring and configuring
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
} from "@/components/ui/card";
|
||||
import { authClient, useSession } from "@/lib/auth-client";
|
||||
import { useAppForm } from "@/lib/formSutff";
|
||||
|
||||
import { Spinner } from "../../components/ui/spinner";
|
||||
import ChangePassword from "./-components/ChangePassword";
|
||||
import NotificationsSubCard from "./-components/NotificationsSubCard";
|
||||
@@ -37,6 +38,7 @@ export const Route = createFileRoute("/(auth)/user/profile")({
|
||||
|
||||
function RouteComponent() {
|
||||
const { data: session } = useSession();
|
||||
|
||||
const form = useAppForm({
|
||||
defaultValues: {
|
||||
name: session?.user.name,
|
||||
|
||||
Reference in New Issue
Block a user