From 780a095e11a6c27e2c946f2c619dc9195b166a6d Mon Sep 17 00:00:00 2001 From: patrickwebsdev Date: Fri, 8 Nov 2024 12:15:41 -0300 Subject: [PATCH] fix: type --- src/components/SolicitudCard.tsx | 2 +- src/types/Requests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SolicitudCard.tsx b/src/components/SolicitudCard.tsx index f5a25824..db85c6a8 100644 --- a/src/components/SolicitudCard.tsx +++ b/src/components/SolicitudCard.tsx @@ -13,7 +13,7 @@ import { useState } from 'react'; import ChangeUrgencyHelpRequest from './ChangeUrgencyHelpRequest'; type SolicitudCardProps = { - caso: HelpRequestData; + caso: HelpRequestData & { special_situations: string; user_id: string }; showLink?: boolean; showEdit?: boolean; }; diff --git a/src/types/Requests.ts b/src/types/Requests.ts index cea04e6d..c875a3af 100644 --- a/src/types/Requests.ts +++ b/src/types/Requests.ts @@ -3,7 +3,7 @@ import { Database } from './database'; export type HelpRequestType = 'necesita' | 'ofrece'; export type HelpRequestUrgencyType = 'alta' | 'media' | 'baja'; export type HelpRequestStatusType = 'pending' | 'in_progress' | 'active'; -export type HelpRequestData = Database['public']['Tables']['help_requests']['Row'] & { special_situations:string, user_id: string}; +export type HelpRequestData = Database['public']['Tables']['help_requests']['Row']; export type HelpRequestUpdate = Database['public']['Tables']['help_requests']['Update']; export type HelpRequestAssignmentData = Database['public']['Tables']['help_request_assignments']['Row']; export type HelpRequestAssignmentInsert = Database['public']['Tables']['help_request_assignments']['Insert'];