Skip to content

Commit

Permalink
Update VerticalView.tsx
Browse files Browse the repository at this point in the history
Removing unused </Link> comment
  • Loading branch information
exoefe authored Mar 3, 2024
1 parent 5c77955 commit 2660a5d
Showing 1 changed file with 43 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,50 @@ import { Box, Center, Flex, HStack, Heading, Text } from '@chakra-ui/react';
import { Link } from 'react-router-dom';

const VerticalView: React.FC<{ eventData: Event }> = ({ eventData }) => {
return (
<>
<Center
bg={'slate.600'}
rounded={'xl'}
shadow={'dark-lg'}
textAlign={'center'}
cursor={'pointer'}
height={'100%'}
width={'100%'}
as={Link}
to={`/event/${eventData.eid}`}>
<Flex
direction={'column'}
justify={'space-evenly'}
w={'80%'}
h={'100%'}>
<Heading size={'sm'} pt={'.5rem'} pb={0} m={0}>
{eventData.title}
</Heading>
<Box h={'60%'} w={'100%'}>
{eventData.eid !== undefined && <EventHeader id={eventData.eid} />}
</Box>
<Flex
direction={'column'}
textAlign={'left'}
justify={'space-evenly'}>
<HStack
textAlign={'center'}
alignItems={'center'}
overflowWrap={'break-word'}>
<Icon type={'calendar'} size={1.5} />
<Text fontSize={'.75rem'} m={0}>
{transformDate(new Date(eventData.date))}
</Text>
</HStack>
<HStack
textAlign={'center'}
alignItems={'center'}
overflowWrap={'break-word'}>
<Icon type={'map'} size={1.5} />{' '}
<Text fontSize={'.75rem'} m={0}>
{eventData.address}
</Text>
</HStack>
</Flex>
return (
<>
<Center
bg={'slate.600'}
rounded={'xl'}
shadow={'dark-lg'}
textAlign={'center'}
cursor={'pointer'}
height={'100%'}
width={'100%'}
as={Link}
to={`/event/${eventData.eid}`}
>

<Flex direction={'column'} justify={'space-evenly'} w={'80%'} h={'100%'}>
<Heading size={'sm'} pt={'.5rem'} pb={0} m={0}>
{eventData.title}
</Heading>
<Box h={'60%'} w={'100%'}>
{eventData.eid !== undefined && <EventHeader id={eventData.eid} />}
</Box>
<Flex direction={'column'} textAlign={'left'} justify={'space-evenly'}>
<HStack
textAlign={'center'}
alignItems={'center'}
overflowWrap={'break-word'}>
<Icon type={'calendar'} size={1.5} />
<Text fontSize={'.75rem'} m={0}>
{transformDate(new Date(eventData.date))}
</Text>
</HStack>
<HStack
textAlign={'center'}
alignItems={'center'}
overflowWrap={'break-word'}>
<Icon type={'map'} size={1.5} />{' '}
<Text fontSize={'.75rem'} m={0}>
{eventData.address}
</Text>
</HStack>
</Flex>
</Center>
{/* </Link> */}
</>
</Flex>
</Center>
</>
);
};

Expand Down

0 comments on commit 2660a5d

Please sign in to comment.