From 0178baaacf4d06fc8c3464228f59d6ed573af4ee Mon Sep 17 00:00:00 2001 From: Vinicius Souza Date: Tue, 5 Nov 2024 19:08:38 +0000 Subject: [PATCH] feat: use real history data from backend --- src/components/HistoryCard.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/HistoryCard.tsx b/src/components/HistoryCard.tsx index 2ad4607..07b8746 100644 --- a/src/components/HistoryCard.tsx +++ b/src/components/HistoryCard.tsx @@ -1,6 +1,12 @@ import { Heading, HStack, Text, VStack } from '@gluestack-ui/themed'; -export function HistoryCard() { +import { HistoryDTO } from '@dtos/HistoryDTO'; + +type HistoryCardProps = { + data: HistoryDTO; +}; + +export function HistoryCard({ data }: HistoryCardProps) { return ( - Costas + {data.group} - Puxada Frontal + {data.name} - 08:36 + {data.hour} );