Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Introduced new ContactAvatar and ContactAvatarPicker components for enhanced avatar management in contact views. - Updated ContactDetailView and ContactFormView to utilize the new avatar components, improving user experience when adding or editing contacts. - Enhanced ContactHoverCard and ContactRow components to display avatars, providing a more visually appealing interface. - Added loading and error states in ContactsListView for better user feedback during data fetching. - Implemented a new ContactsLoadState component to handle loading and error scenarios in the contacts list. - Updated package.json to include @formkit/auto-animate for improved UI animations.
14 lines
454 B
TypeScript
14 lines
454 B
TypeScript
'use client'
|
|
|
|
import { useMutation } from '@tanstack/react-query'
|
|
import { apiClient } from '../client'
|
|
import type { ApiEnrichedContactData } from '@/lib/contacts/discovery-types'
|
|
import type { ImproveContactPayload } from '@/lib/contacts/improve-contact'
|
|
|
|
export function useImproveContact() {
|
|
return useMutation({
|
|
mutationFn: (payload: ImproveContactPayload) =>
|
|
apiClient.post<ApiEnrichedContactData>('/contacts/improve', payload),
|
|
})
|
|
}
|