feat: create screen header component
This commit is contained in:
parent
b3480ec8da
commit
1f028cf1fa
2 changed files with 21 additions and 5 deletions
15
src/components/ScreenHeader.tsx
Normal file
15
src/components/ScreenHeader.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Center, Heading } from '@gluestack-ui/themed';
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
};
|
||||
|
||||
export function ScreenHeader({ title }: Props) {
|
||||
return (
|
||||
<Center bg="$gray600" pb="$6" pt="$16">
|
||||
<Heading color="$gray100" fontSize="$xl">
|
||||
{title}
|
||||
</Heading>
|
||||
</Center>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
import { Center, Text } from "@gluestack-ui/themed";
|
||||
import { ScreenHeader } from '@components/ScreenHeader';
|
||||
import { VStack } from '@gluestack-ui/themed';
|
||||
|
||||
export function History() {
|
||||
return (
|
||||
<Center flex={1}>
|
||||
<Text>History</Text>
|
||||
</Center>
|
||||
)
|
||||
<VStack flex={1}>
|
||||
<ScreenHeader title="Histórico" />
|
||||
</VStack>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue