Skip to content

Commit 3f3593e

Browse files
committed
chore: review clean up
1 parent 2999172 commit 3f3593e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/components/EventCard.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,19 @@ const EventCard = ({
4848
<Box
4949
className={className}
5050
position="relative"
51-
marginTop={{ base: "0", md: 0 }}
51+
mt="0"
5252
_before={clearStyles}
5353
_after={clearStyles}
54-
width={{ base: "100%", md: "100%", xl: "100%" }}
55-
height={"100%"}
54+
w="full"
55+
h="full"
5656
>
5757
<Flex
58-
borderRadius="sm"
5958
border="1px solid"
6059
borderColor="lightBorder"
6160
height={"100%"}
6261
direction={"column"}
6362
justifyContent={"space-between"}
64-
rounded={"4px"}
63+
rounded="base"
6564
>
6665
<Box>
6766
<Flex
@@ -88,9 +87,9 @@ const EventCard = ({
8887
boxShadow="rgb(0 0 0 / 10%) 0px -1px 0px inset;"
8988
>
9089
<Image
91-
src={imageUrl ? imageUrl : "/images/events/event-placeholder.png"}
90+
src={imageUrl || "/images/events/event-placeholder.png"}
9291
alt={title}
93-
width={{ base: "100%", sm: "100%" }}
92+
w="full"
9493
height={{ base: "224px", xl: "124px" }}
9594
objectFit={"cover"}
9695
fallbackSrc="/images/events/event-placeholder.png"
@@ -102,7 +101,6 @@ const EventCard = ({
102101
as="h3"
103102
fontSize={{ base: "md", md: "2xl" }}
104103
marginTop={0}
105-
fontWeight="semibold"
106104
lineHeight={1.4}
107105
>
108106
{title}
@@ -112,7 +110,7 @@ const EventCard = ({
112110
</Text>
113111
</Box>
114112
<Box>
115-
<Text fontSize={{ base: "sm", md: "sm" }}>{description}</Text>
113+
<Text fontSize="sm">{description}</Text>
116114
</Box>
117115
</Box>
118116
</Box>

0 commit comments

Comments
 (0)