This commit is contained in:
Milan Paunovic
2024-10-21 10:03:30 +02:00
parent a7af6765a8
commit 6ff324f988

View File

@ -1,7 +1,6 @@
import { View, Text } from "react-native-ui-lib"; import {Image, Text, View} from "react-native-ui-lib";
import React from "react"; import React from "react";
import {useAuthContext} from "@/contexts/AuthContext"; import {useAuthContext} from "@/contexts/AuthContext";
import { ImageBackground } from "react-native";
const HeaderTemplate = (props: { const HeaderTemplate = (props: {
message: string; message: string;
@ -14,8 +13,8 @@ const HeaderTemplate = (props: {
const headerHeight: number = 72; const headerHeight: number = 72;
return ( return (
<View row centerV marginV-15> <View row centerV marginV-15>
<ImageBackground <Image
source={require("../../assets/images/profile-picture.png")} source={{uri: profileData?.pfp}}
style={{ style={{
height: headerHeight, height: headerHeight,
aspectRatio: 1, aspectRatio: 1,
@ -26,7 +25,10 @@ const HeaderTemplate = (props: {
/> />
<View gap-3> <View gap-3>
{props.isWelcome && ( {props.isWelcome && (
<Text text70L style={{fontSize: 19, fontFamily: "Manrope_400Regular"}}>Welcome, {profileData?.firstName}!</Text> <Text text70L style={{
fontSize: 19,
fontFamily: "Manrope_400Regular"
}}>Welcome, {profileData?.firstName}!</Text>
)} )}
<Text text70B style={{fontSize: 18, fontFamily: "Manrope_600SemiBold"}}> <Text text70B style={{fontSize: 18, fontFamily: "Manrope_600SemiBold"}}>
{props.message} {props.message}