Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:Resolve alignment issues in Profile Screen and alignment for dis… #9

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 42 additions & 26 deletions audire/audire-mobile-app/src/modules/profile/ProfileView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,25 @@ const ProfileView = () => {
</Avatar>

<Center>
<Text fontWeight="bold" color="black" fontSize="$2xl">
{firstName}
</Text>
<Text fontWeight="bold" color="black" fontSize="$2xl">
{lastName}
<Text
fontWeight="bold"
color="black"
fontSize="$xl"
numberOfLines={2}
textAlign="center"
>
{firstName} {lastName}
</Text>
</Center>
</Center>

<Center display="flex" flexDirection="column" gap="$3">
<Box display="flex" flexDirection="row" gap="$3">
<Text>First Name:</Text>
<Center display="flex" flexDirection="column" gap="$4" px="$12">
<Center display="flex" flexDirection="column" alignItems="flex-start">
<Text fontWeight="bold" fontSize="$xs">
First Name
</Text>
<Input
w={200}
w="$full"
variant="outline"
size="sm"
isDisabled={false}
Expand All @@ -78,11 +83,13 @@ const ProfileView = () => {
onChangeText={(text) => setNewFirstName(text)}
/>
</Input>
</Box>
<Box display="flex" flexDirection="row" gap="$3">
<Text> Last Name:</Text>
</Center>
<Center display="flex" flexDirection="column" alignItems="flex-start">
<Text fontWeight="bold" fontSize="$xs">
Last Name
</Text>
<Input
w={200}
w="$full"
variant="outline"
size="sm"
isDisabled={false}
Expand All @@ -96,11 +103,14 @@ const ProfileView = () => {
placeholder={formattedLastName}
/>
</Input>
</Box>
<Box display="flex" flexDirection="row" gap="$9">
<Text> Mobile:</Text>
</Center>
<Center display="flex" flexDirection="column" alignItems="flex-start">
<Text fontWeight="bold" fontSize="$xs">
{' '}
Mobile
</Text>
<Input
w={200}
w="$full"
variant="outline"
size="sm"
isDisabled={false}
Expand All @@ -109,12 +119,15 @@ const ProfileView = () => {
>
<InputField placeholder={formattedmobile} />
</Input>
</Box>
</Center>

<Box display="flex" flexDirection="row" gap="$12">
<Text> Email:</Text>
<Center display="flex" flexDirection="column" alignItems="flex-start">
<Text fontWeight="bold" fontSize="$xs">
{' '}
Email
</Text>
<Input
w={200}
w="$full"
variant="outline"
size="sm"
isDisabled={false}
Expand All @@ -123,11 +136,14 @@ const ProfileView = () => {
>
<InputField lineHeight={22} />
</Input>
</Box>
<Box display="flex" flexDirection="row" gap="$16">
<Text> City:</Text>
</Center>
<Center display="flex" flexDirection="column" alignItems="flex-start">
<Text fontWeight="bold" fontSize="$xs">
{' '}
City
</Text>
<Input
w={200}
w="$full"
variant="outline"
size="sm"
isDisabled={false}
Expand All @@ -136,7 +152,7 @@ const ProfileView = () => {
>
<InputField lineHeight={22} />
</Input>
</Box>
</Center>
</Center>
<TouchableOpacity>
<Button
Expand Down
Loading