Skip to content

Commit

Permalink
Refactor GrantedSeasonPass component styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed May 3, 2024
1 parent 493f99f commit ec08744
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions dapp/src/pages/OverviewPage/GrantedSeasonPassCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import React from "react"
import { Card, CardBody, CardHeader, CardProps, Icon } from "@chakra-ui/react"
import {
Card,
CardBody,
CardHeader,
CardProps,
Text,
HStack,
Icon,
} from "@chakra-ui/react"
import { IconDiscountCheckFilled, IconLock } from "@tabler/icons-react"

type GrantedSeasonPassCardProps = CardProps & {
Expand All @@ -13,25 +21,26 @@ export default function GrantedSeasonPassCard(

return (
<Card size="md" px={5} py={4} gap={4} {...restProps}>
<CardHeader fontWeight="bold" p={0}>
{heading}
<Icon
as={IconLock}
ml={1}
my={0.5}
boxSize={5}
verticalAlign="bottom"
/>
<CardHeader
as={HStack}
spacing={1}
alignItems="normal"
fontWeight="bold"
p={0}
>
<Text>{heading}</Text>
<Icon as={IconLock} boxSize={5} />
</CardHeader>
<CardBody color="green.400" fontWeight="semibold" p={0}>
<Icon
as={IconDiscountCheckFilled}
mr={2}
my={0.5}
boxSize={5}
verticalAlign="bottom"
/>
Your seat is secured.
<CardBody
as={HStack}
spacing={2}
alignItems="center"
color="green.400"
fontWeight="semibold"
p={0}
>
<Icon as={IconDiscountCheckFilled} boxSize={5} />
<Text>Your seat is secured.</Text>
</CardBody>
</Card>
)
Expand Down

0 comments on commit ec08744

Please sign in to comment.