feat: use real history data from backend
This commit is contained in:
parent
ea7341f26e
commit
0178baaacf
1 changed files with 10 additions and 4 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue