Skip to content

Commit

Permalink
remove redundant wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Jun 12, 2024
1 parent 18ecf3b commit 45856ae
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions src/subscriptions/components/subscription-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,31 @@ export const SubscriptionListItem = memo(
textAlign="start"
alignItems="initial"
onClick={openSubscriptionUpdate}>
<CardBody>
<div className={cn(`flex items-center gap-2`)}>
<Avatar
bg="transparent"
size="sm"
icon={subscriptionIconToIconElement[subscription.icon]}
/>
<CardBody className={cn(`flex items-center gap-2`)}>
<Avatar
bg="transparent"
size="sm"
icon={subscriptionIconToIconElement[subscription.icon]}
/>

<div className={cn('flex-1 overflow-hidden')}>
<Heading
size="xs"
className={cn(`truncate`)}
textTransform="uppercase">
{subscription.name}
</Heading>

{subscription.description ? (
<Text
className={cn(`truncate`)}
fontSize="sm">
{subscription.description}
</Text>
) : null}
</div>
<div className={cn('flex-1 overflow-hidden')}>
<Heading
size="xs"
className={cn(`truncate`)}
textTransform="uppercase">
{subscription.name}
</Heading>

<Heading size="md">{subscription.price}</Heading>
{subscription.description ? (
<Text
className={cn(`truncate`)}
fontSize="sm">
{subscription.description}
</Text>
) : null}
</div>

<Heading size="md">{subscription.price}</Heading>
</CardBody>
</Card>
);
Expand Down

0 comments on commit 45856ae

Please sign in to comment.