Skip to content

Commit

Permalink
fix(shelter details): fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtim committed Nov 1, 2022
1 parent 0c4b881 commit cadc123
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions pages/shelters/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,23 @@ const ShelterDetails: NextPage<UserProps & Props> = ({ user, shelter, pets, crea
<Center flexDir="column" p={4}>
<Stack>
{/* LINE1 */}
<Flex w="container.xl" alignItems="center" gap={2}>
<UserImg user={shelter} />
<Heading>{shelter?.name}</Heading>
</Flex>
<Flex>
<SimpleGrid columns={2} spacing={1} h="1">
<Text>อีเมล</Text>
<TextLink title={shelter.email} to={`mailto:${shelter.email}`} text={`${shelter.email}` || '-'} />
<Stack>
<Flex alignItems="center" gap={2}>
<UserImg user={shelter} />
<Heading>{shelter?.name}</Heading>
</Flex>
<SimpleGrid columns={2} spacing={1} h="auto">
<Text>อีเมล</Text>
<TextLink title={shelter.email} to={`mailto:${shelter.email}`} text={`${shelter.email}` || '-'} />

<Text>โทรศัพท์ </Text>
<Text color="gray"> {shelter.phone || '-'}</Text>
<Text>โทรศัพท์ </Text>
<Text color="gray"> {shelter.phone || '-'}</Text>

<Text>เป็นสมาชิกเมื่อ </Text>
<Text color="gray">{createdAt}</Text>
</SimpleGrid>
<Text>เป็นสมาชิกเมื่อ </Text>
<Text color="gray">{createdAt}</Text>
</SimpleGrid>
</Stack>

{shelter.lat && shelter.lng && (
<Flex w="xl" h="sm" marginLeft="auto">
Expand Down

1 comment on commit cadc123

@vercel
Copy link

@vercel vercel bot commented on cadc123 Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

be-friends – ./

be-friends-cjtim.vercel.app
be-friends.vercel.app
be-friends-git-master-cjtim.vercel.app

Please sign in to comment.