diff --git a/src/components/events/GetTicketCard.tsx b/src/components/events/GetTicketCard.tsx index 90d3b56..015267c 100644 --- a/src/components/events/GetTicketCard.tsx +++ b/src/components/events/GetTicketCard.tsx @@ -1,14 +1,16 @@ import React from 'react' import { Flex, Button, Text, VStack } from '@chakra-ui/react' +import { Event } from '@/models/event.model' type Props = { + event: Event getTicket: () => Promise isBuyTicketLoading: boolean hasTicket: boolean } const GetTicketCard = (props: Props) => { - const { getTicket, isBuyTicketLoading, hasTicket } = props + const { event, getTicket, isBuyTicketLoading, hasTicket } = props return ( { fontWeight='semibold' color={'#00001C'} > - ¡GRATIS! + ¡GRATIS! {event.totalTickets - event.remainingTickets} {hasTicket ? (