feat: use real history data from backend

This commit is contained in:
Vinicius Souza 2024-11-05 19:08:38 +00:00
parent ea7341f26e
commit 0178baaacf

View file

@ -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 (
<HStack
w="$full"
@ -13,16 +19,16 @@ export function HistoryCard() {
justifyContent="space-between">
<VStack flex={1} mr="$5">
<Heading color="$white" fontSize="$md" textTransform="capitalize" numberOfLines={1}>
Costas
{data.group}
</Heading>
<Text color="$gray100" fontSize="$lg" numberOfLines={1}>
Puxada Frontal
{data.name}
</Text>
</VStack>
<Text color="$gray300" fontSize="$md">
08:36
{data.hour}
</Text>
</HStack>
);