update profile

This commit is contained in:
2025-12-16 14:54:18 -03:00
parent ae40dcc985
commit 2be277a42e
4 changed files with 96 additions and 24 deletions

View File

@@ -1,8 +1,9 @@
import type { Route } from './+types/profile'
import { useEffect } from 'react'
import { AlertCircleIcon } from 'lucide-react'
import { useForm } from 'react-hook-form'
import { Link, useOutletContext } from 'react-router'
import { Link, useOutletContext, useFetcher } from 'react-router'
import { PatternFormat } from 'react-number-format'
import { zodResolver } from '@hookform/resolvers/zod'
import { toast } from 'sonner'
@@ -27,16 +28,14 @@ import { Input } from '@repo/ui/components/ui/input'
import { Spinner } from '@repo/ui/components/ui/spinner'
import { type User } from '@repo/ui/routes/users/data'
import { request as req, HttpMethod } from '@repo/util/request'
import { formSchema, type Schema } from './emails/data'
import { useFetcher } from 'react-router'
import { userContext } from '@repo/auth/context'
import {
Alert,
AlertDescription,
AlertTitle
} from '@repo/ui/components/ui/alert'
import { useEffect } from 'react'
import { formSchema, type Schema } from './emails/data'
export async function action({ request, context }: Route.ActionArgs) {
const body = await request.json()